mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-10 08:27:48 +05:30
reverse-ramdisk.c: fix fail condition after realloc
This commit is contained in:
parent
8de851ad79
commit
50a6998d59
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user