summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-07 01:25:22 +0000
committerjkh <jkh@FreeBSD.org>1995-05-07 01:25:22 +0000
commit97b64700b1ad85fe2d36458ade4525c49256dc82 (patch)
treebae4532a307e490f406c6d88e04064b862cd5f3a /lib/libdisk
parent09a74d468d8a1a0c4e36cddb3053598075a3ebc4 (diff)
downloadFreeBSD-src-97b64700b1ad85fe2d36458ade4525c49256dc82.zip
FreeBSD-src-97b64700b1ad85fe2d36458ade4525c49256dc82.tar.gz
Always zero new chunks - keeps things like the private structures from having
bogus data in them.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/chunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c
index bf2ec6f..926c038 100644
--- a/lib/libdisk/chunk.c
+++ b/lib/libdisk/chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: chunk.c,v 1.7 1995/05/05 07:07:43 phk Exp $
+ * $Id: chunk.c,v 1.8 1995/05/06 03:28:27 phk Exp $
*
*/
@@ -18,7 +18,7 @@
#include <err.h>
#include "libdisk.h"
-#define new_chunk() malloc(sizeof(struct chunk))
+#define new_chunk() memset(malloc(sizeof(struct chunk), 0, sizeof(struct chunk)))
/* Is c2 completely inside c1 ? */
OpenPOWER on IntegriCloud