aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-10-04 14:09:07 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2016-10-04 14:09:07 -0700
commite93572e6becbc68d3da0fb869c8feba8edafec47 (patch)
tree9dc9c820d253f29662b7e3aa6db3be933bb1aded /rdoff
parent436e367874fc488a9d7e9196d1366715c4f05c05 (diff)
parent3f87a2ac50b018ec463beaf702cb9779bdbe97b3 (diff)
downloadnasm-e93572e6becbc68d3da0fb869c8feba8edafec47.tar.gz
nasm-e93572e6becbc68d3da0fb869c8feba8edafec47.tar.xz
nasm-e93572e6becbc68d3da0fb869c8feba8edafec47.zip
Merge remote-tracking branch 'origin/nasm-2.12.xx'
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/ldrdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c
index ff543f93..2db980f0 100644
--- a/rdoff/ldrdf.c
+++ b/rdoff/ldrdf.c
@@ -1398,7 +1398,9 @@ int main(int argc, char **argv)
write_output(outname);
- if (errorcount > 0)
+ if (errorcount > 0) {
+ remove(outname);
exit(1);
+ }
return 0;
}