diff --git a/src/template.c b/src/template.c index 7140cfb..07ffe37 100644 --- a/src/template.c +++ b/src/template.c @@ -134,7 +134,7 @@ main(void) // * write WAVE headers // 1. open file FILE* output_file = fopen(OUTPUT_FILE, "wb"); - if (output_file == NULL || !output_file) { + if (output_file == NULL) { perror("fopen"); return 1; }