mirror of
https://github.com/fmang/opustags.git
synced 2025-10-20 04:40:14 +02:00
remove broken file on failure
This commit is contained in:
@@ -462,6 +462,8 @@ int main(int argc, char **argv){
|
||||
error = "opustags: invalid file";
|
||||
if(error){
|
||||
fprintf(stderr, "%s\n", error);
|
||||
if(path_out != NULL && out != stdout)
|
||||
remove(path_out);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
|
Reference in New Issue
Block a user