summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53/files/patch-auto_nlist.c
blob: 79feff8f64eeaeaa706247702f86280f5e51c906 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- agent/auto_nlist.c.orig	Sun Feb 29 21:24:25 2004
+++ agent/auto_nlist.c	Sun Feb 29 21:24:43 2004
@@ -57,6 +57,7 @@
     }
     if (*ptr == 0) {
         *ptr = (struct autonlist *) malloc(sizeof(struct autonlist));
+	memset(*ptr, 0, sizeof(struct autonlist));
         it = *ptr;
         it->left = 0;
         it->right = 0;