Skip to content

Commit

Permalink
Fix missing separator in module info line (usedby and using lists) (r…
Browse files Browse the repository at this point in the history
…edis#9241)

Fix module info genModulesInfoStringRenderModulesList lack separator when there's more than one module in the list.

Co-authored-by: Oran Agra <oran@redislabs.com>
  • Loading branch information
huangzhw and oranagra committed Jul 19, 2021
1 parent d54c908 commit 1895e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -8832,8 +8832,9 @@ sds genModulesInfoStringRenderModulesList(list *l) {
while((ln = listNext(&li))) {
RedisModule *module = ln->value;
output = sdscat(output,module->name);
if (ln != listLast(l))
output = sdscat(output,"|");
}
output = sdstrim(output,"|");
output = sdscat(output,"]");
return output;
}
Expand Down

0 comments on commit 1895e13

Please sign in to comment.