From 1aed310c0cd7e0e76f2e7fa9a7d4eca23848bcab 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 ecb57e96..c364f9a9 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -493,7 +493,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++) {