shithub: choc

Download patch

ref: cb793641ca3b7d549a4e84ecec0b822357dded67
parent: dc9d3bbafa0f115c81f51d4614c7e9f7fcbe1990
author: Fabian Greffrath <[email protected]>
date: Tue Aug 22 03:59:07 EDT 2017

Simplify I_Realloc() logic around error check

--- a/src/i_system.c
+++ b/src/i_system.c
@@ -465,12 +465,8 @@
     {
         I_Error ("I_Realloc: failed on reallocation of %i bytes", size);
     }
-    else
-    {
-        ptr = new_ptr;
-    }
 
-    return ptr;
+    return new_ptr;
 }
 
 //