summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authorJeffrey Lovitz <jlovitz@emcien.com>2018-08-12 12:47:01 -0400
committerJeffrey Lovitz <jlovitz@emcien.com>2018-08-12 12:47:01 -0400
commitbd01334da1d27367ad9887f159f2860f7e8ba5ac (patch)
tree4eb3eb8730b8b3fac30ac9a8c89054be6a262b64 /src/redis-cli.c
parent39c70e728b5af0c50989ffbc05e568099f3e081b (diff)
downloadredis-bd01334da1d27367ad9887f159f2860f7e8ba5ac.tar.gz
CLI Help text loop verifies arg count
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 0e8777bd2..247d1f734 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -545,7 +545,7 @@ static void cliIntegrateHelp(void) {
ch->params = sdscat(ch->params,"key ");
args--;
}
- while(args--) ch->params = sdscat(ch->params,"arg ");
+ while(args-- > 0) ch->params = sdscat(ch->params,"arg ");
if (entry->element[1]->integer < 0)
ch->params = sdscat(ch->params,"...options...");
ch->summary = "Help not available";