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 aeb0158..d65af1f 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,