From 2f1a3475910bfea5d0c0ead874a238db3ecbf3ad Mon Sep 17 00:00:00 2001 From: dickmao Date: Sat, 4 Dec 2021 07:32:00 -0500 Subject: [PATCH] Scuttle a compiler warning under --enable-checking * src/image.c (webp_load): Scuttle compiler warning. --- src/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/image.c b/src/image.c index b85c405487..709abc21aa 100644 --- a/src/image.c +++ b/src/image.c @@ -8970,7 +8970,7 @@ webp_load (struct frame *f, struct image *img) { ptrdiff_t size = 0; uint8_t *contents; - Lisp_Object file; + Lisp_Object file = Qnil; /* Open the WebP file. */ Lisp_Object specified_file = image_spec_value (img->spec, QCfile, NULL); @@ -9007,7 +9007,7 @@ webp_load (struct frame *f, struct image *img) /* Validate the WebP image header. */ if (!WebPGetInfo (contents, size, NULL, NULL)) { - if (NILP (specified_data)) + if (! NILP (file)) image_error ("Not a WebP file: `%s'", file); else image_error ("Invalid header in WebP image data"); @@ -9030,7 +9030,7 @@ webp_load (struct frame *f, struct image *img) case VP8_STATUS_USER_ABORT: default: /* Error out in all other cases. */ - if (NILP (specified_data)) + if (! NILP (file)) image_error ("Error when interpreting WebP image data: `%s'", file); else image_error ("Error when interpreting WebP image data"); -- 2.26.2