mirror of
https://github.com/fmang/opustags.git
synced 2025-01-15 20:53:16 +01:00
remove broken file on failure
This commit is contained in:
parent
f75e484ebb
commit
a8e22fb5db
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user