Skip to content

Commit

Permalink
Delete output file if assembly fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent d52c89c commit 16caf77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assemble.c
Expand Up @@ -69,6 +69,8 @@ int main(int argc, char **argv)
buf[rc] = '\0';
if (assemble(buf, outfile))
retval = 0;
else
remove(outfile);
free(buf);
} // else
} // for
Expand Down

0 comments on commit 16caf77

Please sign in to comment.