From ac6b606ccc85c2fca02b6199ba138fd85f04489c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 4 Jun 2022 19:16:00 +0200 Subject: Bump Wuffs, support partial PNGs through it --- fiv-thumbnail.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fiv-thumbnail.c') diff --git a/fiv-thumbnail.c b/fiv-thumbnail.c index 2dfd15f..44f2735 100644 --- a/fiv-thumbnail.c +++ b/fiv-thumbnail.c @@ -425,8 +425,10 @@ read_wide_thumbnail( bool sRGB = false; GBytes *thum = cairo_surface_get_user_data(surface, &fiv_io_key_thum); if (!thum) { + g_clear_error(error); set_error(error, "not a thumbnail"); } else if (!check_wide_thumbnail_texts(thum, uri, mtime, &sRGB)) { + g_clear_error(error); set_error(error, "mismatch"); } else { // TODO(p): Add a function or a non-valueless define to check -- cgit v1.2.3