Fix persistence reloading.
This commit is contained in:
parent
027c5d7f6e
commit
ff55499725
@ -121,7 +121,7 @@ int db__open(struct mosquitto__config *config, struct mosquitto_db *db)
|
||||
|
||||
db->subs = NULL;
|
||||
|
||||
subhier = sub__add_hier_entry(&db->subs, " ", strlen(" "));
|
||||
subhier = sub__add_hier_entry(&db->subs, "", strlen(""));
|
||||
if(!subhier) return MOSQ_ERR_NOMEM;
|
||||
|
||||
subhier = sub__add_hier_entry(&db->subs, "$SYS", strlen("$SYS"));
|
||||
|
@ -183,7 +183,7 @@ static int sub__topic_tokenise(const char *subtopic, struct sub__token **topics)
|
||||
assert(topics);
|
||||
|
||||
if(subtopic[0] != '$'){
|
||||
new_topic = sub__topic_append(&tail, topics, " ");
|
||||
new_topic = sub__topic_append(&tail, topics, "");
|
||||
if(!new_topic) goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user