From 3d61803aa2f3378b6ff36734a3a6d74297e7ec35 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 11 Nov 1998 07:49:27 +0000 Subject: [PATCH] Pre-zero group structures. --- common/alloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/alloc.c b/common/alloc.c index 599c2efb4..90a71d4fa 100644 --- a/common/alloc.c +++ b/common/alloc.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: alloc.c,v 1.19 1998/11/09 02:43:42 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: alloc.c,v 1.20 1998/11/11 07:49:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -153,6 +153,8 @@ struct group *new_group (name) { struct group *rval = dmalloc (sizeof (struct group), name); + if (rval) + memset (rval, 0, sizeof *rval); return rval; } -- 2.47.3