Fix empty initializer

MSVC does not like such empty initializer:
  xamples/device-dashboard/net.c(116): error C2059: syntax error: '}'
This commit is contained in:
Gisle Vanem
2022-08-05 13:50:55 +02:00
committed by GitHub
parent 4bee440a56
commit 96df718304
+1 -1
View File
@@ -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);
}
}