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

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