summaryrefslogtreecommitdiff
path: root/src/cmd/cc
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2008-08-03 13:31:06 -0700
committerKen Thompson <ken@golang.org>2008-08-03 13:31:06 -0700
commitb389a6f476e3a8c0432d749be945958bb2d8a0df (patch)
tree7afaf6c30005d75060460d8e299bace87552ad97 /src/cmd/cc
parentf17854f90c1ceef36a13a0baaabc8314c24802df (diff)
downloadgolang-b389a6f476e3a8c0432d749be945958bb2d8a0df.tar.gz
6c delete .6 file on error
R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=13785 CL=13785
Diffstat (limited to 'src/cmd/cc')
-rw-r--r--src/cmd/cc/lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c
index e3a8e440d..a1de21cd8 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;