Parcourir la source

check_snmp: Initialize size_t value to 0, not NULL

Holger Weiss il y a 12 ans
Parent
commit
e8594f461d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plugins/check_snmp.c

+ 1 - 1
plugins/check_snmp.c

@@ -112,7 +112,7 @@ char *privproto = NULL;
 char *authpasswd = NULL;
 char *authpasswd = NULL;
 char *privpasswd = NULL;
 char *privpasswd = NULL;
 char **oids = NULL;
 char **oids = NULL;
-size_t oids_size = NULL;
+size_t oids_size = 0;
 char *label;
 char *label;
 char *units;
 char *units;
 char *port;
 char *port;