Commit d5946390 authored by Russ Cox's avatar Russ Cox

rm outfile if 6g exits with an error

R=ken
OCL=33134
CL=33141
parent 7c9b9af7
...@@ -60,9 +60,12 @@ fatal(char *fmt, ...) ...@@ -60,9 +60,12 @@ fatal(char *fmt, ...)
vfprint(1, fmt, arg); vfprint(1, fmt, arg);
va_end(arg); va_end(arg);
print("\n"); print("\n");
if(debug['h']) if(debug['h']) {
if(outfile)
unlink(outfile);
*(int*)0 = 0; *(int*)0 = 0;
exit(1); }
errorexit();
} }
void void
...@@ -87,7 +90,7 @@ linehist(char *file, int32 off, int relative) ...@@ -87,7 +90,7 @@ linehist(char *file, int32 off, int relative)
file = cp; file = cp;
} }
h = alloc(sizeof(Hist)); h = mal(sizeof(Hist));
h->name = file; h->name = file;
h->line = lineno; h->line = lineno;
h->offset = off; h->offset = off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment