aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
commite56136ce1192d04a52b01ccb41284f0b7896430e (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /xmalloc.c
parentPrint stack trace on assert() failure or when calling fatal_error() (diff)
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 8fb78f49..16b3565a 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -28,7 +28,7 @@ xmalloc(size_t size)
void *
xcalloc(size_t nmemb, size_t size)
{
- assert(size != 0);
+ xassert(size != 0);
return check_alloc(calloc(likely(nmemb) ? nmemb : 1, size));
}