do not segv on empty %top
This commit is contained in:
parent
70b1118896
commit
a74bdd2fcc
@ -73,7 +73,9 @@ void dump_output(void) {
|
|||||||
free(sprint_buffer);
|
free(sprint_buffer);
|
||||||
|
|
||||||
// Definition section
|
// Definition section
|
||||||
|
if (top) {
|
||||||
fputs(top, yyout);
|
fputs(top, yyout);
|
||||||
|
}
|
||||||
|
|
||||||
// Rule section
|
// Rule section
|
||||||
dump_rule_table("enter_cases", ENTER_RULE);
|
dump_rule_table("enter_cases", ENTER_RULE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user