summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-11-30 09:41:54 +0100
committerantirez <antirez@gmail.com>2019-01-09 17:00:29 +0100
commit317f8b9d383f1b7f171aef7ea29f9e05abf0ba83 (patch)
tree28f4ca9efb35812f013ac459b18cc5e861591032 /src/sort.c
parent1b7298e66ae002b9011c22d8270436506a9dc9b1 (diff)
downloadredis-317f8b9d383f1b7f171aef7ea29f9e05abf0ba83.tar.gz
RESP3: most null replies converted.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 322f02726..8608cd8b3 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -519,7 +519,7 @@ void sortCommand(client *c) {
if (sop->type == SORT_OP_GET) {
if (!val) {
- addReply(c,shared.nullbulk);
+ addReplyNull(c);
} else {
addReplyBulk(c,val);
decrRefCount(val);