summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattcollier <collier.matthew@gmail.com>2015-01-25 14:01:39 -0500
committermattcollier <collier.matthew@gmail.com>2015-01-25 14:01:39 -0500
commit6ec5f1f78064264b9b33349858f8aa9157d4efe0 (patch)
treedeef54a288340764d630aa0815435e20c98b2163
parent9802ec3c83cf6b61edad50bc41ddb3f6fdb13c6f (diff)
downloadredis-6ec5f1f78064264b9b33349858f8aa9157d4efe0.tar.gz
Update redis-cli.c
Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n'
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
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++) {