aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_snmp.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/THANKS.in b/THANKS.in
index c7e44df3..cf60bf2b 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -197,3 +197,4 @@ Aravind Gottipati
Kyle Tucker
Craig Orsinger
Robby Giffin
+Henning Schmiedehausen
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 8cf1aa67..ac2c58ce 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -93,8 +93,8 @@ char regex_expect[MAX_INPUT_BUFFER] = "";
regex_t preg;
regmatch_t pmatch[10];
char timestamp[10] = "";
-char errbuf[MAX_INPUT_BUFFER];
-char perfstr[MAX_INPUT_BUFFER];
+char errbuf[MAX_INPUT_BUFFER] = "";
+char perfstr[MAX_INPUT_BUFFER] = "";
int cflags = REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
int eflags = 0;
int errcode, excode;
@@ -151,7 +151,7 @@ main (int argc, char **argv)
char *ptr = NULL;
char *p2 = NULL;
char *show = NULL;
- char type[8];
+ char type[8] = "";
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);