Commit 76c59f0e authored by antirez's avatar antirez
Browse files

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

parent 1c636714
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment