Browse Source

check_snmp: Initialize size_t value to 0, not NULL

Holger Weiss 12 năm trước cách đây
mục cha
commit
e8594f461d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;