emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master aa7fe6c: Don't message complete GIF data upon errors


From: Lars Ingebrigtsen
Subject: master aa7fe6c: Don't message complete GIF data upon errors
Date: Fri, 17 Jul 2020 10:02:04 -0400 (EDT)

branch: master
commit aa7fe6ce25205c34b2cc9cd56650c6eba752255a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Don't message complete GIF data upon errors
    
    * src/image.c (gif_load): When unable to parse a GIF specified
    via a data attribute, don't message the complete binary, because
    that's not useful (bug#40850).
---
 src/image.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/image.c b/src/image.c
index c8a192a..e7e0a93 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8274,7 +8274,10 @@ gif_load (struct frame *f, struct image *img)
   rc = DGifSlurp (gif);
   if (rc == GIF_ERROR || gif->ImageCount <= 0)
     {
-      image_error ("Error reading `%s'", img->spec);
+      if (NILP (specified_data))
+       image_error ("Error reading `%s'", img->spec);
+      else
+       image_error ("Error reading GIF data");
       gif_close (gif, NULL);
       return 0;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]