mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
7d083ce457
The code in file_procedure_find() tries to lazy-open the image file, so it's not opened if unnecessary. To keep track of whether the image was opened or not, it overrides head_size to keep track of this. head_size is also assigned the return value of fread() in the loop. The patch separates this by introducing another variable. I think it's best to move the file opening code outside the while loop, as it's most likely bound to be opened anyway, and the penalty is not too bad. |
||
---|---|---|
.. | ||
.gitignore | ||
file-open.c | ||
file-open.h | ||
file-procedure.c | ||
file-procedure.h | ||
file-save.c | ||
file-save.h | ||
file-utils.c | ||
file-utils.h | ||
gimp-file.h | ||
Makefile.am | ||
makefile.msc |