Cleanup CgeColor value in case of unsupported format
This commit is contained in:
1 parent
853295ee1f
commit
1e624d9587
1 file changed
+2
@@ -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