Ver Fonte

check_snmp: Initialize size_t value to 0, not NULL

Holger Weiss há 12 anos atrás
pai
commit
e8594f461d
1 ficheiros alterados com 1 adições e 1 exclusões
  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;