From 3906ebee1242b770f935e7694662be265e04d72b Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 7 May 1995 01:25:22 +0000 Subject: Always zero new chunks - keeps things like the private structures from having bogus data in them. --- lib/libdisk/chunk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libdisk') diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index bf2ec6f7accd..926c0386c34a 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 #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 ? */ -- cgit v1.3