summaryrefslogblamecommitdiff
path: root/net-mgmt/net-snmp/files/patch-diskio.c
blob: 309f0a9d1a041fb41ce3d1d7473c0787f0984bfd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                           
--- ./agent/mibgroup/ucd-snmp/diskio.c.orig	Mon Jan 24 23:35:53 2005
+++ ./agent/mibgroup/ucd-snmp/diskio.c	Mon Jan 24 23:37:24 2005
@@ -458,8 +458,8 @@
 		    ERROR_MSG("Memory alloc failure - devla_getstats()\n");
 		    return;
 	    }
+	    memset(lastat->dinfo, 0, sizeof(struct devinfo));
 	}
-	memset(lastat->dinfo, 0, sizeof(struct devinfo));
 
         if ((GETDEVS(lastat)) == -1) {
                 ERROR_MSG("can't do getdevs()\n");