commit 9f055dbe625ad02b3ee85876ec53f059c362b1d2
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Tue Aug 22 07:59:07 2017 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Tue Aug 22 07:59:07 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 187c2c46..7cb55c4c 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -337,12 +337,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;
}
//