Skip to content

Commit 61290d8

Browse files
mattcollierantirez
authored andcommitted
Update redis-cli.c
Code was adding '\n' (line 521) to the end of NIL values exlusively making csv output inconsistent. Removed '\n'
1 parent 18dc769 commit 61290d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redis-cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ static sds cliFormatReplyCSV(redisReply *r) {
493493
out = sdscatrepr(out,r->str,r->len);
494494
break;
495495
case REDIS_REPLY_NIL:
496-
out = sdscat(out,"NIL\n");
496+
out = sdscat(out,"NIL");
497497
break;
498498
case REDIS_REPLY_ARRAY:
499499
for (i = 0; i < r->elements; i++) {

0 commit comments

Comments
 (0)