Always zero new chunks - keeps things like the private structures from having

bogus data in them.
This commit is contained in:
jkh 1995-05-07 01:25:22 +00:00
parent 09a74d468d
commit 97b64700b1
2 changed files with 4 additions and 4 deletions

View File

@ -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 ? */

View File

@ -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 ? */