summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/stab.c b/parse/stab.c
index cc7a644..54ccfaa 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -719,7 +719,7 @@ bindtype(Tyenv *env, Type *t)
{
Bitset *visited;
- if (!t)
+ if (!t || !env)
return;
visited = mkbs();
bindtype_rec(env, t, visited);