Fix #1458 - fail on example build error, and fix examples/mqtt-server

This commit is contained in:
Sergey Lyubka committed 2022-01-27 12:10:03 +00:00
1 parent fbf5fa53c6
commit 768f67ae0a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
for (struct sub *sub = s_subs; sub != NULL; sub = sub->next) {
if (mg_globmatch(sub->topic.ptr, sub->topic.len, mm->topic.ptr,
mm->topic.len)) {
mg_mqtt_pub(sub->c, &mm->topic, &mm->data, 1, false);
mg_mqtt_pub(sub->c, mm->topic, mm->data, 1, false);
}
}
break;