Fix comment.
This commit is contained in:
parent
3f0c202aa5
commit
8a6f179c83
@ -71,7 +71,7 @@ int sub__topic_tokenise(const char *subtopic, char **local_sub, char ***topics,
|
||||
saveptr = strchr(&saveptr[1], '/');
|
||||
count++;
|
||||
}
|
||||
*topics = mosquitto__calloc(count+3 /* 3=$,shared,sharename */, sizeof(char *));
|
||||
*topics = mosquitto__calloc(count+3 /* 3=$shared,sharename,NULL */, sizeof(char *));
|
||||
if((*topics) == NULL){
|
||||
mosquitto__free(*local_sub);
|
||||
return MOSQ_ERR_NOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user