SDL_realloc() with size 0 now always defaults to size 1

This commit is contained in:
Petar Popovic 2024-09-08 11:32:33 +02:00 committed by Sam Lantinga
parent 4c0cb94b96
commit 257385277d
1 changed files with 1 additions and 1 deletions

View File

@ -6461,7 +6461,7 @@ void *SDL_realloc(void *ptr, size_t size)
{
void *mem;
if (!ptr && !size) {
if (!size) {
size = 1;
}