Merge pull request #1664 from gvanem/patch-1

Fix empty initializer
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-08-05 19:19:55 +01:00
commit 12ab5c9964
1 file changed
+1 -1
+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);
}
}