Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
319d1801
Commit
319d1801
authored
Oct 06, 2015
by
antirez
Browse files
Fix GEORADIUS COUNT option arity checks.
parent
19f6ab50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/geo.c
View file @
319d1801
...
...
@@ -481,7 +481,7 @@ void georadiusGeneric(client *c, int type) {
sort
=
SORT_ASC
;
}
else
if
(
!
strcasecmp
(
arg
,
"desc"
))
{
sort
=
SORT_DESC
;
}
else
if
(
!
strcasecmp
(
arg
,
"count"
)
&&
remaining
>
0
)
{
}
else
if
(
!
strcasecmp
(
arg
,
"count"
)
&&
(
i
+
1
)
<
remaining
)
{
if
(
getLongLongFromObjectOrReply
(
c
,
c
->
argv
[
base_args
+
i
+
1
],
&
count
,
NULL
)
!=
C_OK
)
return
;
if
(
count
<=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment