Blame SOURCES/remove-unncessary-NULL-ptr-check.patch

0c7016
From 4720596d610e5406d0445433f1a079fc84858fa7 Mon Sep 17 00:00:00 2001
0c7016
From: cool <whoami@archer.localdomain>
0c7016
Date: Thu, 9 Feb 2012 22:20:52 -1100
0c7016
Subject: [PATCH] remove unncessary NULL ptr check
0c7016
0c7016
---
0c7016
 libfreerdp-utils/memory.c | 6 ------
0c7016
 1 file changed, 6 deletions(-)
0c7016
0c7016
diff --git a/libfreerdp-utils/memory.c b/libfreerdp-utils/memory.c
0c7016
index d4d17a620..676fd3ffa 100644
0c7016
--- a/libfreerdp-utils/memory.c
0c7016
+++ b/libfreerdp-utils/memory.c
0c7016
@@ -82,12 +82,6 @@ void* xrealloc(void* ptr, size_t size)
0c7016
 	if (size < 1)
0c7016
 		size = 1;
0c7016
 
0c7016
-	if (ptr == NULL)
0c7016
-	{
0c7016
-		printf("xrealloc: null pointer given\n");
0c7016
-		return NULL;
0c7016
-	}
0c7016
-
0c7016
 	mem = realloc(ptr, size);
0c7016
 
0c7016
 	if (mem == NULL)
0c7016
-- 
0c7016
2.14.1
0c7016