projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8302b72
)
remove unncessary NULL ptr check
author
cool
<whoami@archer.localdomain>
Fri, 10 Feb 2012 09:20:52 +0000
(22:20 -1100)
committer
cool
<whoami@archer.localdomain>
Fri, 10 Feb 2012 09:20:52 +0000
(22:20 -1100)
libfreerdp-utils/memory.c
patch
|
blob
|
history
diff --git
a/libfreerdp-utils/memory.c
b/libfreerdp-utils/memory.c
index
d4d17a6
..
676fd3f
100644
(file)
--- 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)