From aa7fe6ce25205c34b2cc9cd56650c6eba752255a Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 17 Jul 2020 16:01:55 +0200 Subject: [PATCH] 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 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; } -- 2.39.5