Cleanup CgeColor value in case of unsupported format
Some checks failed
CI / build-and-analyze (push) Failing after 1m10s

This commit is contained in:
2026-07-21 18:52:40 +03:00
parent 853295ee1f
commit 1e624d9587

2
Pix.c
View File

@@ -351,6 +351,8 @@ static int isLittleEndian(void) {
static void readData(const struct FormatInfo *format, void *data, uint32_t x,
CgeColor *value, const CgeColor *palette, int flags) {
memset(value, 0, sizeof(*value));
switch (format->type) {
default: return;