diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 19:26:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 19:26:49 +0000 |
commit | 65fcd2482e4dbbcba181e3efab9889d7d0622ab0 (patch) | |
tree | 20e68ba249a9c19e48f4811c667133a435452c65 /sys | |
parent | 8aeb9423f3d937caae2ffcbaebec765bc1411042 (diff) |
Initialize dh_blkfree with zero's.
ok beck@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_dirhash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_dirhash.c b/sys/ufs/ufs/ufs_dirhash.c index 8502e769420..d6ebabe70fe 100644 --- a/sys/ufs/ufs/ufs_dirhash.c +++ b/sys/ufs/ufs/ufs_dirhash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_dirhash.c,v 1.16 2007/10/05 16:46:30 thib Exp $ */ +/* $OpenBSD: ufs_dirhash.c,v 1.17 2007/10/08 19:26:48 krw Exp $ */ /* * Copyright (c) 2001, 2002 Ian Dowse. All rights reserved. * @@ -176,7 +176,7 @@ ufsdirhash_build(struct inode *ip) dh->dh_hash = malloc(narrays * sizeof(dh->dh_hash[0]), M_DIRHASH, M_NOWAIT|M_ZERO); dh->dh_blkfree = malloc(nblocks * sizeof(dh->dh_blkfree[0]), - M_DIRHASH, M_NOWAIT); + M_DIRHASH, M_NOWAIT | M_ZERO); if (dh->dh_hash == NULL || dh->dh_blkfree == NULL) goto fail; for (i = 0; i < narrays; i++) { |