diff options
author | Huang Zhw <huang_zhw@126.com> | 2021-07-19 16:10:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 11:10:25 +0300 |
commit | 1895e134a77efd789b1a6daee76a6ba5ec90e516 (patch) | |
tree | c7a690703146d5d1a0c8cc3d2025e4143ee4be72 | |
parent | d54c9086c267d20bb6981f5a60f589e93b662d62 (diff) | |
download | redis-1895e134a77efd789b1a6daee76a6ba5ec90e516.tar.gz |
Fix missing separator in module info line (usedby and using lists) (#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>
-rw-r--r-- | src/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index 29340a1de..15d8d7d0d 100644 --- a/src/module.c +++ b/src/module.c @@ -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; } |