From: cool Date: Fri, 10 Feb 2012 09:20:52 +0000 (-1100) Subject: remove unncessary NULL ptr check X-Git-Tag: 1.1.0-beta1~512^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4720596d610e5406d0445433f1a079fc84858fa7;p=platform%2Fupstream%2Ffreerdp.git remove unncessary NULL ptr check --- diff --git a/libfreerdp-utils/memory.c b/libfreerdp-utils/memory.c index d4d17a6..676fd3f 100644 --- a/libfreerdp-utils/memory.c +++ b/libfreerdp-utils/memory.c @@ -82,12 +82,6 @@ void* xrealloc(void* ptr, size_t size) if (size < 1) size = 1; - if (ptr == NULL) - { - printf("xrealloc: null pointer given\n"); - return NULL; - } - mem = realloc(ptr, size); if (mem == NULL)