diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:21 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-06 05:57:21 +0200 |
commit | b20ba656ba7de066d4dcf5ebeef605e6acc7e01d (patch) | |
tree | dc9112127c1eb2323f48a9226606b464689ed4ee /src/utils.c | |
parent | 259ee5b3e29c1c76aad2fc7c2bbf470d414110f1 (diff) |
utils: fix invalid assertion in xrealloc()
The pointer is allowed to have the value NULL.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index dcb1c8c6..96ff4192 100644 --- a/src/utils.c +++ b/src/utils.c @@ -41,7 +41,6 @@ void *xmalloc(size_t size) void *xrealloc(void *ptr, size_t size) { - assert(ptr != NULL); ptr = realloc(ptr, size); if (ptr == NULL && size != 0) memory_allocation_error(); |