template.c: flush stdout before the perror
call
This commit is contained in:
parent
b88d6d94f5
commit
9c72568e00
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user