ipmi: fix building with older gcc's
[collectd.git] / src / ipmi.c
index a5057d3..1422077 100644 (file)
@@ -547,6 +547,7 @@ static void domain_connection_change_handler (ipmi_domain_t *domain,
 static int thread_init (os_handler_t **ret_os_handler)
 {
   os_handler_t *os_handler;
+  ipmi_open_option_t open_option[1];
   ipmi_con_t *smi_connection = NULL;
   ipmi_domain_id_t domain_id;
   int status;
@@ -573,7 +574,7 @@ static int thread_init (os_handler_t **ret_os_handler)
   ipmi_open_option_t open_option[1] = {
     [0] = {
       .option = IPMI_OPEN_OPTION_ALL,
-      .ival = 1
+      { .ival = 1 }
     }
   };