Review variables initialization

- All variables are initialized on declaration, some arrays were not properly initialized
 - Static array buffers require memset() for re-initialization on every function call
This commit is contained in:
Ray
2021-11-09 11:49:03 +01:00
parent 8ec5b2dc2f
commit 21ec8c38ae
4 changed files with 27 additions and 24 deletions

View File

@@ -4547,8 +4547,8 @@ static unsigned char *rlGenNextMipmapData(unsigned char *srcData, int srcWidth,
{
int x2 = 0;
int y2 = 0;
unsigned char prow[4];
unsigned char pcol[4];
unsigned char prow[4] = { 0 };
unsigned char pcol[4] = { 0 };
int width = srcWidth/2;
int height = srcHeight/2;