Cleanup CgeColor value in case of unsupported format
Some checks failed
CI / build-and-analyze (push) Failing after 1m10s
Some checks failed
CI / build-and-analyze (push) Failing after 1m10s
This commit is contained in:
2
Pix.c
2
Pix.c
@@ -351,6 +351,8 @@ static int isLittleEndian(void) {
|
|||||||
|
|
||||||
static void readData(const struct FormatInfo *format, void *data, uint32_t x,
|
static void readData(const struct FormatInfo *format, void *data, uint32_t x,
|
||||||
CgeColor *value, const CgeColor *palette, int flags) {
|
CgeColor *value, const CgeColor *palette, int flags) {
|
||||||
|
memset(value, 0, sizeof(*value));
|
||||||
|
|
||||||
switch (format->type) {
|
switch (format->type) {
|
||||||
default: return;
|
default: return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user