diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-19 19:13:45 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-19 19:13:45 +0000 |
commit | 3834b3262ac3f46cc401d9e027bb32aaa9df0424 (patch) | |
tree | 0c1c9c28608f006f2547a0a00323bcb406738bfa /plugins/check_snmp.c | |
parent | 58ea98cc817d1d9c34b4895a8c828df6764e68a7 (diff) | |
download | monitoring-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index be7810e3..88f89c43 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -254,6 +254,10 @@ main (int argc, char **argv) } /* We strip out the datatype indicator for PHBs */ + + /* Clean up type array - Sol10 does not necessarily zero it out */ + bzero(type, sizeof(type)); + if (strstr (response, "Gauge: ")) show = strstr (response, "Gauge: ") + 7; else if (strstr (response, "Gauge32: ")) |