diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2019-09-17 16:16:46 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2019-09-17 16:16:46 +0000 |
commit | d6b090d1d4cbed343ec601c7ae21b05f35ace245 (patch) | |
tree | 7885551f5f3ecf142a524deece956b493aea9f93 | |
parent | d245aa1e72617a650058af61750506d95f64b726 (diff) | |
download | src-d6b090d1d4cbed343ec601c7ae21b05f35ace245.tar.gz src-d6b090d1d4cbed343ec601c7ae21b05f35ace245.zip |
loader: revert r352421
As insisted by kib, malloc(0) is quite legal.
Notes
Notes:
svn path=/head/; revision=352451
-rw-r--r-- | stand/libsa/zalloc_malloc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/stand/libsa/zalloc_malloc.c b/stand/libsa/zalloc_malloc.c index 17c1648e05e3..98e28b8ef7f5 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 |