From: antirez Date: Thu, 12 Nov 2009 20:35:05 +0000 (+0100) Subject: ZSCORE fixed, now returns NULL on missing key or missing element X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/96d8b4eeba2503c9f679e41963220a72ee5baeda ZSCORE fixed, now returns NULL on missing key or missing element --- diff --git a/redis.c b/redis.c index aec09bdf..470191da 100644 --- a/redis.c +++ b/redis.c @@ -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) {