Again lets check for -1 from BLI_filesize before continuing.

Kent
This commit is contained in:
Kent Mein
2007-06-05 15:51:24 +00:00
parent 0a436e01e2
commit cf528cc946

View File

@@ -271,6 +271,13 @@ static void build_pict_list(char * first)
return;
}
size = BLI_filesize(file);
if (size < 1) {
close(file);
MEM_freeN(picture);
return;
}
picture->size = size;
picture->IB_flags = IB_rect;