diff options
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) | |||
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: ")) |