do not segv on empty %top

This commit is contained in:
anon 2024-09-15 15:14:49 +02:00
parent 70b1118896
commit a74bdd2fcc

View File

@ -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);