aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/malloc.c')
-rw-r--r--src/lib9/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/malloc.c b/src/lib9/malloc.c
index 7b6b59dc..33593aa2 100644
--- a/src/lib9/malloc.c
+++ b/src/lib9/malloc.c
@@ -13,7 +13,7 @@ void*
p9malloc(ulong n)
{
void *v;
-
+
if(n == 0)
n++;
lock(&malloclock);
@@ -36,7 +36,7 @@ void*
p9calloc(ulong a, ulong b)
{
void *v;
-
+
if(a*b == 0)
a = b = 1;