summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-09-06 21:45:57 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-09-06 21:45:57 -0400
commit2aa4a23e5d18dddc2f4258a158d287829406816b (patch)
tree7a80e82d379c7e8b816b4214d489fd4fa70ff21a /ast.c
parentee773c38d6dace105eeea050b2328bc4f4e3195d (diff)
Fix various bugs
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 744ff4b..dcbb961 100644
--- a/ast.c
+++ b/ast.c
@@ -464,6 +464,8 @@ ast_type_spec_new_object (ast_class_definition_t *class)
ast_type_spec_t *
ast_type_spec_resolve (ast_type_spec_t *type)
{
+ g_return_val_if_fail (type != NULL, NULL);
+
if (type->common.type == AST_IDENTIFIER_TYPE)
return ast_type_spec_resolve (type->identifier.resolved);
else