summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-01 19:18:08 +0200
committerantirez <antirez@gmail.com>2019-10-01 19:18:55 +0200
commit40acb4412d9409ef4339d07caeeba540256a062a (patch)
tree02809b923fcc055d955bdcc0a917e5d10d28f4e1 /src/geo.c
parent2e2fe98f9c93e0dc7e40bdab261f730afc0e573f (diff)
downloadredis-40acb4412d9409ef4339d07caeeba540256a062a.tar.gz
GEORADIUS reply: fix of the previous fix about #6417.
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geo.c b/src/geo.c
index 470a615f4..f47f4ee22 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -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) {
- addReplyNullArray(c);
+ addReply(c,shared.emptyarray);
geoArrayFree(ga);
return;
}