This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 31b50aee15c5b634f074e9748d55a452e2df98f6
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Jul 2 17:02:41 2023 +0200
image: Fix potentially using incorrect file size - fixup
Close opened file if we don't like it (zero size, directory).
---
src/lib/image.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lib/image.c b/src/lib/image.c
index 7c38f47..bc60c31 100644
--- a/src/lib/image.c
+++ b/src/lib/image.c
@@ -562,6 +562,8 @@ __imlib_LoadImage(const char *file, ImlibLoadArgs * ila)
if (err)
{
ila->err = err;
+ if (fp && fp != ila->fp)
+ fclose(fp);
free(im_file);
free(im_key);
return NULL;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.