Skip to content

Commit

Permalink
Fix a still reachable error on exit T_VAR
Browse files Browse the repository at this point in the history
  • Loading branch information
mertyildiran committed Apr 22, 2020
1 parent e1df3be commit 4c9c882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaos.y
Original file line number Diff line number Diff line change
Expand Up @@ -771,12 +771,12 @@ quit: { }
exit($2);
}
| T_QUIT T_VAR T_NEWLINE {
long long code = getSymbolValueInt($2);
if (is_interactive) {
print_bye_bye();
} else {
YYABORT;
}
long long code = getSymbolValueInt($2);
freeEverything();
exit(code);
}
Expand Down

0 comments on commit 4c9c882

Please sign in to comment.