From aac0be1ab3f0f3bf5fd54b0c496e50e2deb9fec5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 31 Jan 2023 00:49:57 +0300 Subject: [PATCH] engine: imagelib: img_bmp: fully initialize local palette array --- engine/common/imagelib/img_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/imagelib/img_bmp.c b/engine/common/imagelib/img_bmp.c index f0f9785a..d4edb2e1 100644 --- a/engine/common/imagelib/img_bmp.c +++ b/engine/common/imagelib/img_bmp.c @@ -25,7 +25,7 @@ Image_LoadBMP qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesize ) { byte *buf_p, *pixbuf; - rgba_t palette[256]; + rgba_t palette[256] = { 0 }; int i, columns, column, rows, row, bpp = 1; int cbPalBytes = 0, padSize = 0, bps = 0; int reflectivity[3] = { 0, 0, 0 };