mirror of https://github.com/FreeRDP/FreeRDP
remove unncessary NULL ptr check
This commit is contained in:
parent
8302b724e1
commit
4720596d61
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue