don't delete tic file if there was an error

This commit is contained in:
Andrew Pamment 2016-08-12 07:50:31 +10:00
parent f68d1ba99b
commit 0405567aab

View File

@ -401,7 +401,9 @@ int process_tic_file(char *ticfilen) {
if (ticfile.crc != NULL) { if (ticfile.crc != NULL) {
free(ticfile.crc); free(ticfile.crc);
} }
remove(ticfilename); if (ret == 0) {
remove(ticfilename);
}
return ret; return ret;
} }