summaryrefslogtreecommitdiff
path: root/src/geo.c
diff options
context:
space:
mode:
authororanagra <oran@redislabs.com>2016-05-09 09:12:38 +0300
committeroranagra <oran@redislabs.com>2016-05-09 12:05:33 +0300
commit9682b616a21b5e675a1ca82109a11d6f4de1d2de (patch)
tree9f3c4cddb8b4877970d3f2252bb29ff5e6a326d6 /src/geo.c
parent3b644e82b0cc96113e29672d1551248c9e9db893 (diff)
downloadredis-9682b616a21b5e675a1ca82109a11d6f4de1d2de.tar.gz
minor fixes - mainly signalModifiedKey, and GEORADIUS
Diffstat (limited to 'src/geo.c')
-rw-r--r--src/geo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/geo.c b/src/geo.c
index 2d351d8e0..bcedd4637 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -465,6 +465,7 @@ void georadiusGeneric(client *c, int type) {
double radius_meters = 0, conversion = 1;
if ((radius_meters = extractDistanceOrReply(c, c->argv + base_args - 2,
&conversion)) < 0) {
+ addReplyError(c,"radius must be >= 0");
return;
}