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

This commit is contained in:
antirez 2019-03-14 17:52:02 +01:00
parent 1c6367144b
commit 76c59f0e44

View File

@ -3145,7 +3145,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.emptymultibulk);
return;
}
}