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

From 257385277d32b493ff6eed8e4f2466acfe529af1 Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Sun, 8 Sep 2024 11:32:33 +0200
Subject: [PATCH] SDL_realloc() with size 0 now always defaults to size 1

---
 src/stdlib/SDL_malloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stdlib/SDL_malloc.c b/src/stdlib/SDL_malloc.c
index b6f9345c5407a..02636ec2dd8b6 100644
--- a/src/stdlib/SDL_malloc.c
+++ b/src/stdlib/SDL_malloc.c
@@ -6461,7 +6461,7 @@ void *SDL_realloc(void *ptr, size_t size)
 {
     void *mem;
 
-    if (!ptr && !size) {
+    if (!size) {
         size = 1;
     }