summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-07-17 16:01:55 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-07-17 16:01:55 +0200
commitaa7fe6ce25205c34b2cc9cd56650c6eba752255a (patch)
tree61eb26ba456e39a103ac9281526a94a7adc3d17a /src
parent02bad11288d630595de7e088584d3f8b60cac676 (diff)
downloademacs-aa7fe6ce25205c34b2cc9cd56650c6eba752255a.tar.gz
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).
Diffstat (limited to 'src')
-rw-r--r--src/image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index c8a192aaaf1..e7e0a93313b 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;
}