diff --git a/h_malloc.c b/h_malloc.c index 0ff35d9..30813ce 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1512,7 +1512,7 @@ EXPORT void *h_valloc(size_t size) { EXPORT void *h_pvalloc(size_t size) { size = PAGE_CEILING(size); - if (!size) { + if (unlikely(!size)) { errno = ENOMEM; return NULL; }