Code

type variable not cleared in Sol 10 (Kyle Tucker)
authorTon Voon <tonvoon@users.sourceforge.net>
Thu, 19 Oct 2006 19:13:45 +0000 (19:13 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Thu, 19 Oct 2006 19:13:45 +0000 (19:13 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1503 f882894a-f735-0410-b71e-b25c423dba1c

THANKS.in
plugins/check_snmp.c

index 4ded0eea295b87af6484fef9a49c4efcb8435626..ad08a77773b5397828497b30c238ab3c54aca1f0 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -194,3 +194,4 @@ Christian Mies
 Andreas Behal
 O'Shaughnessy Evans
 Aravind Gottipati
+Kyle Tucker
index be7810e3e5fcc6a7d318d42dc8019d684cffef5b..88f89c43a31a13b61d2b38ce094d1e2f89671283 100644 (file)
@@ -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: "))