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 66a5e03de6298f0ab8b7c78f9d743a9c0c8d8566
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Jan 13 08:04:30 2023 +0100

    imlib2_load: Show error on deferred data load problem
---
 src/bin/imlib2_load.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/bin/imlib2_load.c b/src/bin/imlib2_load.c
index 3a6dc57..a52c82f 100644
--- a/src/bin/imlib2_load.c
+++ b/src/bin/imlib2_load.c
@@ -289,7 +289,15 @@ main(int argc, char **argv)
                       imlib_image_get_width(), imlib_image_get_height());
 
              if (load_mode == LOAD_DEFER)
-                imlib_image_get_data_for_reading_only();
+               {
+                  if (!imlib_image_get_data_for_reading_only())
+                    {
+                       err = imlib_get_error();
+                       fprintf(fout,
+                               "*** Error %d:'%s' loading image data: '%s'\n",
+                               err, imlib_strerror(err), argv[0]);
+                    }
+               }
 
              if (opt_cache)
                 imlib_free_image();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to