Преглед изворни кода

check_snmp: Initialize size_t value to 0, not NULL

Holger Weiss пре 12 година
родитељ
комит
e8594f461d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/check_snmp.c

+ 1 - 1
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;