[Nagiosplug-checkins] nagiosplug/plugins check_snmp.c,1.64,1.65

Ton Voon tonvoon at users.sourceforge.net
Thu Oct 19 21:36:02 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv6724/plugins

Modified Files:
	check_snmp.c 
Log Message:
Initialise strings for Fedora Core 5 (Henning Schmiedehausen)


Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- check_snmp.c	19 Oct 2006 19:25:52 -0000	1.64
+++ check_snmp.c	19 Oct 2006 19:36:00 -0000	1.65
@@ -93,8 +93,8 @@
 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 @@
 	char *ptr = NULL;
 	char *p2 = NULL;
 	char *show = NULL;
-	char type[8];
+	char type[8] = "";
 
 	setlocale (LC_ALL, "");
 	bindtextdomain (PACKAGE, LOCALEDIR);





More information about the Commits mailing list