mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user