mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-09 12:45:28 +00:00
Fix Conditional jump or move depends on uninitialised value(s)
eg ./testsprite2 --trackmem
This commit is contained in:
parent
07d6d116ed
commit
0a91a793cf
|
@ -233,6 +233,12 @@ void SDLTest_LogAllocations()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message = SDL_realloc_orig(NULL, 1);
|
||||||
|
if (!message) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
*message = 0;
|
||||||
|
|
||||||
#define ADD_LINE() \
|
#define ADD_LINE() \
|
||||||
message_size += (SDL_strlen(line) + 1); \
|
message_size += (SDL_strlen(line) + 1); \
|
||||||
tmp = (char *)SDL_realloc_orig(message, message_size); \
|
tmp = (char *)SDL_realloc_orig(message, message_size); \
|
||||||
|
|
Loading…
Reference in a new issue