diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index f44280b..5cb1a0e 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -150,7 +150,7 @@ int tf_free(int ID) { // Reallocate memory for the temp_files array temp_files = realloc(temp_files, num_temp_files * sizeof(TempFile)); - if (temp_files == NULL && num_temp_files > 0) { + if (temp_files == NULL) { line_fail(-2); return -1; }