]> git.saurik.com Git - redis.git/commitdiff
ZSCORE fixed, now returns NULL on missing key or missing element
authorantirez <antirez@gmail.com>
Thu, 12 Nov 2009 20:35:05 +0000 (21:35 +0100)
committerantirez <antirez@gmail.com>
Thu, 12 Nov 2009 20:35:05 +0000 (21:35 +0100)
redis.c

diff --git a/redis.c b/redis.c
index aec09bdf8f1e61b98b2515e68465970869b3acb1..470191dacf67dacd7313b496c5581c554d0dc7b0 100644 (file)
--- 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) {