diff options
author | Jeffrey Lovitz <jlovitz@emcien.com> | 2018-08-12 12:47:01 -0400 |
---|---|---|
committer | Jeffrey Lovitz <jlovitz@emcien.com> | 2018-08-12 12:47:01 -0400 |
commit | bd01334da1d27367ad9887f159f2860f7e8ba5ac (patch) | |
tree | 4eb3eb8730b8b3fac30ac9a8c89054be6a262b64 /src/redis-cli.c | |
parent | 39c70e728b5af0c50989ffbc05e568099f3e081b (diff) | |
download | redis-bd01334da1d27367ad9887f159f2860f7e8ba5ac.tar.gz |
CLI Help text loop verifies arg count
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r-- | src/redis-cli.c | 2 |
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"; |