summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index d0f1684..041ce77 100644
--- a/parse.c
+++ b/parse.c
@@ -1536,7 +1536,7 @@ static void fprint_expr(FILE *out, Expression *e) {
break;
case EXPR_WHILE:
fprintf(out, "while ");
- fprint_expr(out, e->while_.cond);
+ if (e->while_.cond) fprint_expr(out, e->while_.cond);
fprint_block(out, &e->while_.body);
break;
case EXPR_CALL: