ZSCORE fixed, now returns NULL on missing key or missing element

This commit is contained in:
antirez 2009-11-12 21:35:05 +01:00
parent bbf44ecf1b
commit 96d8b4eeba

View File

@ -4372,7 +4372,7 @@ static void zscoreCommand(redisClient *c) {
o = lookupKeyRead(c->db,c->argv[1]);
if (o == NULL) {
addReply(c,shared.czero);
addReply(c,shared.nullbulk);
return;
} else {
if (o->type != REDIS_ZSET) {