diff --git a/source/main.c b/source/main.c index 04db970..993534a 100644 --- a/source/main.c +++ b/source/main.c @@ -73,7 +73,9 @@ void dump_output(void) { free(sprint_buffer); // Definition section - fputs(top, yyout); + if (top) { + fputs(top, yyout); + } // Rule section dump_rule_table("enter_cases", ENTER_RULE);