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

This commit is contained in:
Petar Popovic authored and Sam Lantinga committed 2024-09-08 06:39:37 -07:00
1 parent 4c0cb94b96
commit 257385277d
1 file changed
+1 -1
+1 -1
View File
@@ -6461,7 +6461,7 @@ void *SDL_realloc(void *ptr, size_t size)
{
void *mem;
if (!ptr && !size) {
if (!size) {
size = 1;
}