1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-09-23 18:58:21 +02:00

util/dump.c: Allow NULL ptr if size is zero

This commit is contained in:
Tau 2019-05-09 16:49:00 -04:00
parent 036730840d
commit 649e7d2b4e

View File

@ -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");