Commit f226988e for libheif
commit f226988e2c64ca2629bcd75cf2315e9c416a924e
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Sun May 17 14:23:15 2026 +0200
webp: fix compiler warning
diff --git a/heifio/decoder_webp.cc b/heifio/decoder_webp.cc
index bc2e69f8..20732c85 100644
--- a/heifio/decoder_webp.cc
+++ b/heifio/decoder_webp.cc
@@ -224,8 +224,8 @@ heif_error loadWEBP(const char* filename, InputImage* input_image)
&image);
if (err.code)
return err;
- size_t stride[4];
- uint8_t* ptr[4];
+ size_t stride[4] = {};
+ uint8_t* ptr[4] = {};
const int uv_width = (width + 1) / 2;
const int uv_height = (height + 1) / 2;
err = heif_image_add_plane(image, heif_channel_Y, (int)width, (int)height, 8);