From 3db601e0643a67ed60937234a34442796b74ffdd Mon Sep 17 00:00:00 2001 From: mattcollier Date: Sun, 25 Jan 2015 14:01:39 -0500 Subject: [PATCH] Update redis-cli.c Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n' --- src/redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 3c1458742..e243db451 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -518,7 +518,7 @@ static sds cliFormatReplyCSV(redisReply *r) { out = sdscatrepr(out,r->str,r->len); break; case REDIS_REPLY_NIL: - out = sdscat(out,"NIL\n"); + out = sdscat(out,"NIL"); break; case REDIS_REPLY_ARRAY: for (i = 0; i < r->elements; i++) {