From 0170e6d0e876e897cf98e1e1767523dcf058090e Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 23 Oct 2021 02:46:06 +0200 Subject: [PATCH] * src/image.c (webp_load): Fix thinkos. --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.39.5