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
060f6be6
Commit
060f6be6
authored
Nov 10, 2009
by
antirez
Browse files
Fixed issue 92 in redis: redis-cli (nil) return value lacks CR/LF
parent
bf75f580
Changes
1
Show whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
060f6be6
...
@@ -191,7 +191,7 @@ static int cliReadBulkReply(int fd) {
...
@@ -191,7 +191,7 @@ static int cliReadBulkReply(int fd) {
bulklen
=
atoi
(
replylen
);
bulklen
=
atoi
(
replylen
);
if
(
bulklen
==
-
1
)
{
if
(
bulklen
==
-
1
)
{
sdsfree
(
replylen
);
sdsfree
(
replylen
);
printf
(
"(nil)"
);
printf
(
"(nil)
\n
"
);
return
0
;
return
0
;
}
}
reply
=
zmalloc
(
bulklen
);
reply
=
zmalloc
(
bulklen
);
...
...
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