From: Paul Eggert Date: Mon, 3 Jan 2005 07:52:31 +0000 (+0000) Subject: (<>): Don't close standard output. X-Git-Tag: BISON-2_1~212 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7ec5ab2e48a3d227ddb191dc2fa4ae183dcec623 (<>): Don't close standard output. Problem reported by Hans Aberg. --- diff --git a/src/scan-skel.l b/src/scan-skel.l index d860c08a..7ac27c6e 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -83,7 +83,14 @@ int skel_lex (void); \n lineno++; ECHO; [^@\n]+ ECHO; -<> free (outname); xfclose (yyout); return EOF; +<> { + if (outname) + { + free (outname); + xfclose (yyout); + } + return EOF; +} %% /*------------------------.