Don't bzero in rumpuser_malloc, do it in the caller iff necessary.

This commit is contained in:
pooka 2009-04-17 00:39:26 +00:00
parent cb26856747
commit eff94e356c

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpuser.c,v 1.38 2009/04/07 18:35:49 pooka Exp $ */ /* $NetBSD: rumpuser.c,v 1.39 2009/04/17 00:39:26 pooka Exp $ */
/* /*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved. * Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -30,7 +30,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if !defined(lint) #if !defined(lint)
__RCSID("$NetBSD: rumpuser.c,v 1.38 2009/04/07 18:35:49 pooka Exp $"); __RCSID("$NetBSD: rumpuser.c,v 1.39 2009/04/17 00:39:26 pooka Exp $");
#endif /* !lint */ #endif /* !lint */
/* thank the maker for this */ /* thank the maker for this */
@ -129,9 +129,6 @@ rumpuser__malloc(size_t howmuch, int canfail, const char *func, int line)
abort(); abort();
} }
if (rv)
memset(rv, 0, howmuch);
return rv; return rv;
} }