/* 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");
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");