forked from Dniel97/segatools
util/dump.c: Allow NULL ptr if size is zero
This commit is contained in:
parent
036730840d
commit
649e7d2b4e
@ -15,7 +15,7 @@ void dump(const void *ptr, size_t nbytes)
|
|||||||
size_t i;
|
size_t i;
|
||||||
size_t j;
|
size_t j;
|
||||||
|
|
||||||
assert(ptr != NULL);
|
assert(ptr != NULL || nbytes == 0);
|
||||||
|
|
||||||
if (nbytes == 0) {
|
if (nbytes == 0) {
|
||||||
dprintf("\t--- Empty ---\n");
|
dprintf("\t--- Empty ---\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user