]> git.saurik.com Git - bison.git/commitdiff
("@output ".*\n): Close any old yyout before opening a new one.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2002 05:59:06 +0000 (05:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2002 05:59:06 +0000 (05:59 +0000)
This fixes Debian bug 156349, reported by Bruce Stephens.

src/scan-skel.l

index 80849d37aa609dbb59931f37c53e48dd6657e658..fd9bd4c6fd93e601a6016ad867cb505de944beab 100644 (file)
@@ -60,6 +60,7 @@ int skel_lex (void);
 
   XFREE (outname);
   outname = xstrdup (filename);
+  xfclose (yyout);
   yyout = xfopen (outname, "w");
   lineno = 1;
 }