From 3834b3262ac3f46cc401d9e027bb32aaa9df0424 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 19 Oct 2006 19:13:45 +0000 Subject: 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 diff --git a/THANKS.in b/THANKS.in index 4ded0ee..ad08a77 100644 --- a/THANKS.in +++ b/THANKS.in @@ -194,3 +194,4 @@ Christian Mies Andreas Behal O'Shaughnessy Evans Aravind Gottipati +Kyle Tucker 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) } /* 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: ")) -- cgit v0.10-9-g596f