mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-17 01:06:33 +00:00
ensure "reltopic" is not empty
This commit is contained in:
@@ -433,6 +433,10 @@ void on_message(struct mosquitto *mosq, void *userdata, const struct mosquitto_m
|
||||
mosquitto_sub_topic_tokens_free(&topics, count);
|
||||
return;
|
||||
}
|
||||
|
||||
if (utstring_len(reltopic) == 0)
|
||||
utstring_printf(reltopic, "-");
|
||||
|
||||
mosquitto_sub_topic_tokens_free(&topics, count);
|
||||
|
||||
if (m->retain == TRUE && ud->ignoreretained) {
|
||||
|
||||
Reference in New Issue
Block a user