]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Pre-zero group structures.
authorTed Lemon <source@isc.org>
Wed, 11 Nov 1998 07:49:27 +0000 (07:49 +0000)
committerTed Lemon <source@isc.org>
Wed, 11 Nov 1998 07:49:27 +0000 (07:49 +0000)
common/alloc.c

index 599c2efb481b977eb0557d3a05686062e622328e..90a71d4fadcb55be86b62345f48ddb3a01157d20 100644 (file)
@@ -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;
 }