mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Fix ZPOP return type when COUNT=0. Related to #5799.
This commit is contained in:
parent
052e03495f
commit
74d6af8f80
@ -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) {
|
||||
addReplyNullArray(c);
|
||||
addReply(c,shared.emptyarray);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user