summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-01 10:38:56 +0200
committerantirez <antirez@gmail.com>2019-10-01 10:38:56 +0200
commit3281ebb495f0c7fb14bf28df3534d800e0c7d6a1 (patch)
treee2d5b5d45fd7b92ea067d1872abbf26e67bccf2c /src/geo.c
parentbeebb3c013ef37a90cd9910a0c4077f6fed6abf3 (diff)
downloadredis-3281ebb495f0c7fb14bf28df3534d800e0c7d6a1.tar.gz
Fix GEORADIUS replies broken after RESP3 introduction.
This commit fixes #6417.
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geo.c b/src/geo.c
index 826d11ff5..470a615f4 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -466,7 +466,7 @@ void georadiusGeneric(client *c, int flags) {
/* Look up the requested zset */
robj *zobj = NULL;
- if ((zobj = lookupKeyReadOrReply(c, key, shared.null[c->resp])) == NULL ||
+ if ((zobj = lookupKeyReadOrReply(c, key, shared.emptyarray)) == NULL ||
checkType(c, zobj, OBJ_ZSET)) {
return;
}
@@ -566,7 +566,7 @@ void georadiusGeneric(client *c, int flags) {
/* If no matching results, the user gets an empty reply. */
if (ga->used == 0 && storekey == NULL) {
- addReplyNull(c);
+ addReplyNullArray(c);
geoArrayFree(ga);
return;
}