summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_snmp.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/THANKS.in b/THANKS.in
index 4ded0ee..ad08a77 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -194,3 +194,4 @@ Christian Mies
194Andreas Behal 194Andreas Behal
195O'Shaughnessy Evans 195O'Shaughnessy Evans
196Aravind Gottipati 196Aravind Gottipati
197Kyle 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)
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: "))