From: Ted Lemon Date: Wed, 11 Sep 1996 06:35:16 +0000 (+0000) Subject: dmalloc already zeros allocated memory X-Git-Tag: BETA_5_10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=688a235b8ea420973f61018d53586bec3a487673;p=thirdparty%2Fdhcp.git dmalloc already zeros allocated memory --- diff --git a/common/dispatch.c b/common/dispatch.c index 0bdc22dbe..404e85229 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dispatch.c,v 1.24 1996/09/11 05:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -139,7 +139,6 @@ void discover_interfaces () if (!tmp) error ("Insufficient memory to %s %s", "record interface", ifp -> ifr_name); - memset (tmp, 0, sizeof *tmp); strcpy (tmp -> name, ifp -> ifr_name); tmp -> next = interfaces; tmp -> flags = ir; diff --git a/dispatch.c b/dispatch.c index 0bdc22dbe..404e85229 100644 --- a/dispatch.c +++ b/dispatch.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dispatch.c,v 1.24 1996/09/11 05:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -139,7 +139,6 @@ void discover_interfaces () if (!tmp) error ("Insufficient memory to %s %s", "record interface", ifp -> ifr_name); - memset (tmp, 0, sizeof *tmp); strcpy (tmp -> name, ifp -> ifr_name); tmp -> next = interfaces; tmp -> flags = ir;