From 3040199a77c94b84294982039ade10a66ee71f5f Mon Sep 17 00:00:00 2001 From: mingodad Date: Sun, 31 Jul 2022 19:09:47 +0200 Subject: [PATCH] Fix segfault when involing "lex" without specify the output "-o" and make it work as specified in the "lex.1" man page --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 4557c57..f8526a9 100644 --- a/main.c +++ b/main.c @@ -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;