Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
74d6af8f
Commit
74d6af8f
authored
Mar 14, 2019
by
antirez
Browse files
Fix ZPOP return type when COUNT=0. Related to #5799.
parent
052e0349
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
74d6af8f
...
...
@@ -3144,7 +3144,7 @@ void genericZpopCommand(client *c, robj **keyv, int keyc, int where, int emitkey
if
(
getLongFromObjectOrReply
(
c
,
countarg
,
&
count
,
NULL
)
!=
C_OK
)
return
;
if
(
count
<=
0
)
{
addReply
NullA
rray
(
c
);
addReply
(
c
,
shared
.
emptya
rray
);
return
;
}
}
...
...
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