Zero-initialize Png struct width and height just in case

This commit is contained in:
Rangi
2026-07-21 13:58:31 -04:00
parent 0d379e9016
commit e5b03e3cb1
+2 -1
View File
@@ -10,7 +10,8 @@
#include "gfx/rgba.hpp"
struct Png {
uint32_t width, height;
uint32_t width = 0;
uint32_t height = 0;
std::vector<Rgba> pixels{};
std::vector<Rgba> palette{};