Fix comment.

This commit is contained in:
Roger A. Light 2019-12-11 15:15:40 +00:00
parent 3f0c202aa5
commit 8a6f179c83

View File

@ -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;