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

This commit is contained in:
antirez 2009-11-10 10:26:09 +01:00
parent bf75f580c9
commit 060f6be6bf

View File

@ -191,7 +191,7 @@ static int cliReadBulkReply(int fd) {
bulklen = atoi(replylen);
if (bulklen == -1) {
sdsfree(replylen);
printf("(nil)");
printf("(nil)\n");
return 0;
}
reply = zmalloc(bulklen);