mirror of https://github.com/libsdl-org/SDL
SDL_realloc() with size 0 now always defaults to size 1
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue