diff --git a/examples/device-dashboard/net.c b/examples/device-dashboard/net.c index 0b0ddd76..9f07d8d9 100644 --- a/examples/device-dashboard/net.c +++ b/examples/device-dashboard/net.c @@ -113,7 +113,7 @@ static void mqtt_fn(struct mg_connection *c, int ev, void *ev_data, void *fnd) { static void timer_mqtt_fn(void *param) { struct mg_mgr *mgr = (struct mg_mgr *) param; if (s_mqtt == NULL) { - struct mg_mqtt_opts opts = {}; + struct mg_mqtt_opts opts = { 0 }; s_mqtt = mg_mqtt_connect(mgr, s_config.url, &opts, mqtt_fn, NULL); } }