Explorar el Código

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

Petar Popovic hace 1 año
padre
commit
257385277d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/stdlib/SDL_malloc.c

+ 1 - 1
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;
     }