Fix C++ build

This commit is contained in:
cpq
2026-04-17 22:13:40 +01:00
parent 31568de0fb
commit f123bf3154
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -3342,7 +3342,8 @@ static inline void mg_dash_ev_handler(struct mg_connection *c, int ev,
if (mg_match(hm->uri, mg_str("/api/websocket"), NULL)) {
mg_ws_upgrade(c, hm, NULL);
} else {
struct mg_http_serve_opts opts = {0};
struct mg_http_serve_opts opts;
memset(&opts, 0, sizeof(opts));
opts.fs = &mg_fs_packed;
mg_mem_files = mg_packed_files;
mg_http_serve_file(c, hm, "/dashboard.html", &opts);
+2 -1
View File
@@ -204,7 +204,8 @@ static inline void mg_dash_ev_handler(struct mg_connection *c, int ev,
if (mg_match(hm->uri, mg_str("/api/websocket"), NULL)) {
mg_ws_upgrade(c, hm, NULL);
} else {
struct mg_http_serve_opts opts = {0};
struct mg_http_serve_opts opts;
memset(&opts, 0, sizeof(opts));
opts.fs = &mg_fs_packed;
mg_mem_files = mg_packed_files;
mg_http_serve_file(c, hm, "/dashboard.html", &opts);