diff options
author | 1998-08-28 20:49:07 +0000 | |
---|---|---|
committer | 1998-08-28 20:49:07 +0000 | |
commit | e9cef0856e02233303d2ac13ef0196096777b9e3 (patch) | |
tree | b3259b13aee4b47e02072a2f4b20ffae4ba491ea /lib/libc/db/mpool/mpool.c | |
parent | some float/double/ldouble info (diff) | |
download | wireguard-openbsd-e9cef0856e02233303d2ac13ef0196096777b9e3.tar.xz wireguard-openbsd-e9cef0856e02233303d2ac13ef0196096777b9e3.zip |
do not toss memory dribble into the output files (small performance loss)
Diffstat (limited to 'lib/libc/db/mpool/mpool.c')
-rw-r--r-- | lib/libc/db/mpool/mpool.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/db/mpool/mpool.c b/lib/libc/db/mpool/mpool.c index 69d5fbadfc7..ab98c8e5c59 100644 --- a/lib/libc/db/mpool/mpool.c +++ b/lib/libc/db/mpool/mpool.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: mpool.c,v 1.4 1996/09/15 09:30:51 tholo Exp $"; +static char rcsid[] = "$OpenBSD: mpool.c,v 1.5 1998/08/28 20:49:11 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -353,9 +353,7 @@ new: if ((bp = (BKT *)malloc(sizeof(BKT) + mp->pagesize)) == NULL) #ifdef STATISTICS ++mp->pagealloc; #endif -#if defined(DEBUG) || defined(PURIFY) memset(bp, 0xff, sizeof(BKT) + mp->pagesize); -#endif bp->page = (char *)bp + sizeof(BKT); ++mp->curcache; return (bp); |