1
0

template.c: flush stdout before the perror call

This commit is contained in:
Intel A80486DX2-66 2024-01-21 15:12:04 +03:00
parent b88d6d94f5
commit 9c72568e00
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -147,6 +147,7 @@ main(void)
// 1. open file
FILE* output_file = fopen(OUTPUT_FILE, "wb");
if (output_file == NULL) {
fflush(stdout);
perror("fopen");
return 1;
}