From 6ec5f1f78064264b9b33349858f8aa9157d4efe0 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 3c145874..e243db45 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++) {