From: Stefan Kangas Date: Sat, 23 Oct 2021 00:46:06 +0000 (+0200) Subject: * src/image.c (webp_load): Fix thinkos. X-Git-Tag: emacs-29.0.90~3671^2~462 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0170e6d0e876e897cf98e1e1767523dcf058090e;p=emacs.git * src/image.c (webp_load): Fix thinkos. --- diff --git a/src/image.c b/src/image.c index 308dc687260..f78ad044ab2 100644 --- a/src/image.c +++ b/src/image.c @@ -8888,7 +8888,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 (specified_data)) image_error ("Not a WebP file: `%s'", file); else image_error ("Invalid header in WebP image data"); @@ -8911,7 +8911,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 (specified_data)) image_error ("Error when interpreting WebP image data: `%s'", file); else image_error ("Error when interpreting WebP image data");