From 851100683e6eecbf8f3f06db8aeb4748dc2bfc7a Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Sun, 3 Aug 2008 13:31:06 -0700 Subject: [PATCH] 6c delete .6 file on error R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=13785 CL=13785 --- src/cmd/cc/lex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c index e3a8e440d88..a1de21cd82a 100644 --- a/src/cmd/cc/lex.c +++ b/src/cmd/cc/lex.c @@ -244,6 +244,7 @@ compile(char *file, char **defs, int ndef) errorexit(); } Binit(&outbuf, c, OWRITE); + outfile = strdup(outfile); } newio(); first = 0;