diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-07-17 16:01:55 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-07-17 16:01:55 +0200 |
commit | aa7fe6ce25205c34b2cc9cd56650c6eba752255a (patch) | |
tree | 61eb26ba456e39a103ac9281526a94a7adc3d17a /src/image.c | |
parent | 02bad11288d630595de7e088584d3f8b60cac676 (diff) | |
download | emacs-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/image.c')
-rw-r--r-- | src/image.c | 5 |
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; } |