From c315bce11b09d56cf97067c700d19b671f8a52e5 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Wed, 6 Aug 2003 20:44:09 +0000 Subject: [PATCH] (debugging_realloc): Remove the assert on the ptr being NULL since a NULL pointer is allowed by the realloc() spec. --- src/heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/heap.c b/src/heap.c index 167147a..7986304 100644 --- a/src/heap.c +++ b/src/heap.c @@ -1,4 +1,4 @@ -/* $Id: heap.c,v 1.6 2003-06-26 18:14:13 rjkaes Exp $ +/* $Id: heap.c,v 1.6.2.1 2003-08-06 20:44:09 rjkaes Exp $ * * Debugging versions of various heap related functions are combined * here. The debugging versions include assertions and also print @@ -55,7 +55,6 @@ debugging_realloc(void *ptr, size_t size, const char *file, unsigned long line) { void *newptr; - assert(ptr != NULL); assert(size > 0); newptr = realloc(ptr, size);