remove unncessary NULL ptr check

This commit is contained in:
cool 2012-02-09 22:20:52 -11:00
parent 8302b724e1
commit 4720596d61
1 changed files with 0 additions and 6 deletions

View File

@ -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)