Small code simplification in open_files() function.

This commit is contained in:
LoRd_MuldeR 2021-04-07 02:28:26 +02:00
parent 0043b907a7
commit 0e75e05fda
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -253,8 +253,6 @@ static int open_files(FILE **const file_in, FILE **const file_out, const CHR *co
if (!(*file_out = FOPEN(output_path, T("wb")))) if (!(*file_out = FOPEN(output_path, T("wb"))))
{ {
FPRINTF(stderr, T("Error: Failed to open output file \"%") T(PRISTR) T("\" for writing!\n\n"), output_path); FPRINTF(stderr, T("Error: Failed to open output file \"%") T(PRISTR) T("\" for writing!\n\n"), output_path);
fclose(*file_in);
*file_in = NULL;
return EXIT_FAILURE; return EXIT_FAILURE;
} }