From: tsoome Date: Tue, 17 Sep 2019 16:16:46 +0000 (+0000) Subject: loader: revert r352421 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=96afe8114971e1c9e3533b9e60aafa86f4c52bd2;p=freebsd.git loader: revert r352421 As insisted by kib, malloc(0) is quite legal. --- diff --git a/stand/libsa/zalloc_malloc.c b/stand/libsa/zalloc_malloc.c index 17c1648e05e..98e28b8ef7f 100644 --- a/stand/libsa/zalloc_malloc.c +++ b/stand/libsa/zalloc_malloc.c @@ -73,9 +73,6 @@ Malloc_align(size_t bytes, size_t alignment) { Guard *res; - if (bytes == 0) - return (NULL); - #ifdef USEENDGUARD bytes += MALLOCALIGN + 1; #else