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
7aaaad50
Commit
7aaaad50
authored
Apr 29, 2010
by
antirez
Browse files
redis-cli minor fix (less segfault is better)
parent
dd142b9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
7aaaad50
...
@@ -359,11 +359,11 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
...
@@ -359,11 +359,11 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
int
fd
,
j
,
retval
=
0
;
int
fd
,
j
,
retval
=
0
;
sds
cmd
;
sds
cmd
;
config
.
raw_output
=
(
rc
->
flags
&
CMDFLAG_RAWOUTPUT
);
if
(
!
rc
)
{
if
(
!
rc
)
{
fprintf
(
stderr
,
"Unknown command '%s'
\n
"
,
argv
[
0
]);
fprintf
(
stderr
,
"Unknown command '%s'
\n
"
,
argv
[
0
]);
return
1
;
return
1
;
}
}
config
.
raw_output
=
(
rc
->
flags
&
CMDFLAG_RAWOUTPUT
);
if
((
rc
->
arity
>
0
&&
argc
!=
rc
->
arity
)
||
if
((
rc
->
arity
>
0
&&
argc
!=
rc
->
arity
)
||
(
rc
->
arity
<
0
&&
argc
<
-
rc
->
arity
))
{
(
rc
->
arity
<
0
&&
argc
<
-
rc
->
arity
))
{
...
...
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