[nagiosplug] check_snmp: Initialize size_t value to 0, not NULL
Nagios Plugin Development
nagios-plugins at users.sourceforge.net
Thu Sep 5 00:30:16 CEST 2013
Module: nagiosplug
Branch: master
Commit: e8594f461da0701f3e44af2c5baf351b909a5038
Author: Holger Weiss <holger at zedat.fu-berlin.de>
Date: Thu Sep 5 00:19:36 2013 +0200
URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=e8594f4
check_snmp: Initialize size_t value to 0, not NULL
---
plugins/check_snmp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index bae3830..0bc810d 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -112,7 +112,7 @@ char *privproto = NULL;
char *authpasswd = NULL;
char *privpasswd = NULL;
char **oids = NULL;
-size_t oids_size = NULL;
+size_t oids_size = 0;
char *label;
char *units;
char *port;
More information about the Commits
mailing list