]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
snmp_agent: Remove structure initialization
authorPavel Rochnyack <pavel2000@ngs.ru>
Tue, 19 Jun 2018 08:08:54 +0000 (15:08 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Tue, 19 Jun 2018 08:08:54 +0000 (15:08 +0700)
This adressed to fix Solaris 10 builds.

Closes: #2814
src/snmp_agent.c

index aeb01587c997a2073a0df4c3e39e26a19fd1e9b1..d65af1f19b5a2dadc2e8f7b496abd8e3da1ccc4c 100644 (file)
@@ -531,7 +531,7 @@ static int snmp_agent_fill_index_list(table_definition_t *td,
 
     /* Parsing input string if necessary */
     if (td->index_keys[i].regex) {
-      regmatch_t m = {-1, -1};
+      regmatch_t m;
 
       /* Parsing input string */
       ret = snmp_agent_parse_index_key(ptr, &td->index_keys[i].regex_info,