File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ static sds cliFormatReply(redisReply *r, char *prefix) {
159
159
sds out = sdsempty ();
160
160
switch (r -> type ) {
161
161
case REDIS_REPLY_ERROR :
162
- if (config .tty && !config .bare_output ) out = sdscat (out ,"(error) " );
162
+ if (config .tty && !config .bare_output ) out = sdscat (out ,"(error) " );
163
163
out = sdscatprintf (out ,"%s\n" , r -> str );
164
164
break ;
165
165
case REDIS_REPLY_STATUS :
@@ -173,6 +173,7 @@ static sds cliFormatReply(redisReply *r, char *prefix) {
173
173
case REDIS_REPLY_STRING :
174
174
if (config .raw_output || !config .tty || config .bare_output ) {
175
175
out = sdscatlen (out ,r -> str ,r -> len );
176
+ out = sdscat (out , "\n" );
176
177
} else {
177
178
/* If you are producing output for the standard output we want
178
179
* a more interesting output with quoted characters and so forth */
@@ -224,9 +225,8 @@ static sds cliFormatReply(redisReply *r, char *prefix) {
224
225
} else {
225
226
sds tmp ;
226
227
for (unsigned int i = 0 ; i < r -> elements ; i ++ ) {
227
- tmp = cliFormatReply (r -> element [i ],'A' );
228
+ tmp = cliFormatReply (r -> element [i ],NULL );
228
229
out = sdscatlen (out ,tmp ,sdslen (tmp ));
229
- out = sdscat (out , "\n" );
230
230
sdsfree (tmp );
231
231
}
232
232
}
You can’t perform that action at this time.
0 commit comments