mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 06:21:09 +00:00
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;
|
||||
|
||||
if (!ptr && !size) {
|
||||
if (!size) {
|
||||
size = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user