Skip to content

Commit

Permalink
Fix segfault when involing "lex" without specify the output "-o" and …
Browse files Browse the repository at this point in the history
…make it work as specified in the "lex.1" man page
  • Loading branch information
mingodad committed Jul 31, 2022
1 parent 83dc48f commit 3040199
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ main(int argc, char **argv)
int c;
Boolean eoption = 0, woption = 0;
const char *driver = 0;
const char *fnout = "yy.lex.c";

sargv = argv;
sargc = argc;
Expand Down

0 comments on commit 3040199

Please sign in to comment.