Commit 060f6be6 authored by antirez's avatar antirez
Browse files

Fixed issue 92 in redis: redis-cli (nil) return value lacks CR/LF

parent bf75f580
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment