commit cb793641ca3b7d549a4e84ecec0b822357dded67
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Tue Aug 22 07:59:07 2017 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Aug 23 08:42:57 2017 +0200
Simplify I_Realloc() logic around error check
---
src/i_system.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/i_system.c b/src/i_system.c
index be8db177..da2225c6 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -465,12 +465,8 @@ void *I_Realloc(void *ptr, size_t size)
{
I_Error ("I_Realloc: failed on reallocation of %i bytes", size);
}
- else
- {
- ptr = new_ptr;
- }
- return ptr;
+ return new_ptr;
}
//