From 649e7d2b4e497dd542b2944aa02204404862ff05 Mon Sep 17 00:00:00 2001 From: Tau Date: Thu, 9 May 2019 16:49:00 -0400 Subject: [PATCH] util/dump.c: Allow NULL ptr if size is zero --- util/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dump.c b/util/dump.c index 79a3cb1..e42448c 100644 --- a/util/dump.c +++ b/util/dump.c @@ -15,7 +15,7 @@ void dump(const void *ptr, size_t nbytes) size_t i; size_t j; - assert(ptr != NULL); + assert(ptr != NULL || nbytes == 0); if (nbytes == 0) { dprintf("\t--- Empty ---\n");