From e5b03e3cb1a88998ab905e10ea48333dbba3dd75 Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 21 Jul 2026 13:58:31 -0400 Subject: [PATCH] Zero-initialize `Png` struct `width` and `height` just in case --- include/gfx/png.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/gfx/png.hpp b/include/gfx/png.hpp index 4869bdd8..6fa1fd30 100644 --- a/include/gfx/png.hpp +++ b/include/gfx/png.hpp @@ -10,7 +10,8 @@ #include "gfx/rgba.hpp" struct Png { - uint32_t width, height; + uint32_t width = 0; + uint32_t height = 0; std::vector pixels{}; std::vector palette{};