fix for missing default topic (issue #12)

This commit is contained in:
john30
2017-10-14 12:03:00 +02:00
parent b9c69f0dbc
commit 2adbe24875
+3
View File
@@ -194,6 +194,9 @@ static const struct argp_child g_mqtt_argp_child = {&g_mqtt_argp, 0, "", 1};
const struct argp_child* mqtthandler_getargs() {
if (g_topicStrs.empty()) {
g_topicStrs.push_back(PACKAGE);
}
return &g_mqtt_argp_child;
}