[nagiosplug] check_snmp: Initialize size_t value to 0, not NULL

"Nagios Plugin Development" <[email protected]> Wed, 4 Sep 2013 22:30:16 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: e8594f461da0701f3e44af2c5baf351b909a5038
 Author: Holger Weiss <[email protected]>
   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;


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk