Fix ZPOP return type when COUNT=0. Related to #5799.

This commit is contained in:
antirez 2019-03-14 17:51:14 +01:00
parent 052e03495f
commit 74d6af8f80

View File

@ -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;
}
}