Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
18d65849
Commit
18d65849
authored
Jul 09, 2018
by
antirez
Browse files
redis-cli: fix #5096 double error message.
parent
84620327
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
18d65849
...
@@ -504,7 +504,7 @@ static void cliInitHelp(void) {
...
@@ -504,7 +504,7 @@ static void cliInitHelp(void) {
* entries with additional entries obtained using the COMMAND command
* entries with additional entries obtained using the COMMAND command
* available in recent versions of Redis. */
* available in recent versions of Redis. */
static
void
cliIntegrateHelp
(
void
)
{
static
void
cliIntegrateHelp
(
void
)
{
if
(
cliConnect
(
0
)
==
REDIS_ERR
)
return
;
if
(
cliConnect
(
CC_QUIET
)
==
REDIS_ERR
)
return
;
redisReply
*
reply
=
redisCommand
(
context
,
"COMMAND"
);
redisReply
*
reply
=
redisCommand
(
context
,
"COMMAND"
);
if
(
reply
==
NULL
||
reply
->
type
!=
REDIS_REPLY_ARRAY
)
return
;
if
(
reply
==
NULL
||
reply
->
type
!=
REDIS_REPLY_ARRAY
)
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment