summaryrefslogtreecommitdiff
path: root/toc.c
diff options
context:
space:
mode:
Diffstat (limited to 'toc.c')
-rw-r--r--toc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toc.c b/toc.c
index 243baaa..85c0404 100644
--- a/toc.c
+++ b/toc.c
@@ -25,7 +25,7 @@
static Type *type_inner(Type *t) {
- while (t->kind == TYPE_USER)
+ while (t && t->kind == TYPE_USER)
t = ident_typeval(t->user.name);
return t;
}