]> Cypherpunks repositories - gostls13.git/commitdiff
6c delete .6 file on error
authorKen Thompson <ken@golang.org>
Sun, 3 Aug 2008 20:31:06 +0000 (13:31 -0700)
committerKen Thompson <ken@golang.org>
Sun, 3 Aug 2008 20:31:06 +0000 (13:31 -0700)
R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=13785
CL=13785

src/cmd/cc/lex.c

index e3a8e440d88ed2a478cd8c4972ccbd0b5534a913..a1de21cd82ae9493d922f91017febccf8eccf511 100644 (file)
@@ -244,6 +244,7 @@ compile(char *file, char **defs, int ndef)
                        errorexit();
                }
                Binit(&outbuf, c, OWRITE);
+               outfile = strdup(outfile);
        }
        newio();
        first = 0;