SDL_realloc() with size 0 now always defaults to size 1
This commit is contained in:
committed by
Sam Lantinga
parent
4c0cb94b96
commit
257385277d
@@ -6461,7 +6461,7 @@ void *SDL_realloc(void *ptr, size_t size)
|
|||||||
{
|
{
|
||||||
void *mem;
|
void *mem;
|
||||||
|
|
||||||
if (!ptr && !size) {
|
if (!size) {
|
||||||
size = 1;
|
size = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user