freebsd-ports/net-mgmt/net-snmp/files/patch-agent__auto_nlist.c
Ryan Steinmetz 686ddc7a7f - Fix kvm_read() issue
- Bump PORTREVISION

PR:		ports/177761
Submitted by:	sbruno@
2013-05-30 11:55:31 +00:00

10 lines
399 B
C

--- ./agent/auto_nlist.c.orig 2012-10-09 18:28:58.000000000 -0400
+++ ./agent/auto_nlist.c 2013-04-10 14:26:21.000000000 -0400
@@ -56,6 +56,7 @@
static char *n_name = NULL;
#endif
*ptr = (struct autonlist *) malloc(sizeof(struct autonlist));
+ bzero(*ptr, sizeof(struct autonlist));
it = *ptr;
it->left = 0;
it->right = 0;