summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-10-19 19:13:45 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-10-19 19:13:45 (GMT)
commit3834b3262ac3f46cc401d9e027bb32aaa9df0424 (patch)
tree0c1c9c28608f006f2547a0a00323bcb406738bfa /plugins/check_snmp.c
parent58ea98cc817d1d9c34b4895a8c828df6764e68a7 (diff)
downloadmonitoring-plugins-3834b3262ac3f46cc401d9e027bb32aaa9df0424.tar.gz
type variable not cleared in Sol 10 (Kyle Tucker)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1503 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index be7810e..88f89c4 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -254,6 +254,10 @@ main (int argc, char **argv)
254 } 254 }
255 255
256 /* We strip out the datatype indicator for PHBs */ 256 /* We strip out the datatype indicator for PHBs */
257
258 /* Clean up type array - Sol10 does not necessarily zero it out */
259 bzero(type, sizeof(type));
260
257 if (strstr (response, "Gauge: ")) 261 if (strstr (response, "Gauge: "))
258 show = strstr (response, "Gauge: ") + 7; 262 show = strstr (response, "Gauge: ") + 7;
259 else if (strstr (response, "Gauge32: ")) 263 else if (strstr (response, "Gauge32: "))