[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0170e6d: * src/image.c (webp_load): Fix thinkos.
From: |
Stefan Kangas |
Subject: |
master 0170e6d: * src/image.c (webp_load): Fix thinkos. |
Date: |
Fri, 22 Oct 2021 20:54:12 -0400 (EDT) |
branch: master
commit 0170e6d0e876e897cf98e1e1767523dcf058090e
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
* 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 308dc68..f78ad04 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");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 0170e6d: * src/image.c (webp_load): Fix thinkos.,
Stefan Kangas <=