From: antirez <antirez@gmail.com>
Date: Fri, 5 Jun 2009 14:07:22 +0000 (+0200)
Subject: LREM now returns :0 for non existing keys
X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/33c08b39164eb669313f4871ce1b16a8e4cb2e5c?ds=inline;hp=--cc

LREM now returns :0 for non existing keys
---

33c08b39164eb669313f4871ce1b16a8e4cb2e5c
diff --git a/redis.c b/redis.c
index 28e1c64f..8b3f3be2 100644
--- a/redis.c
+++ b/redis.c
@@ -2860,7 +2860,7 @@ static void lremCommand(redisClient *c) {
     
     o = lookupKeyWrite(c->db,c->argv[1]);
     if (o == NULL) {
-        addReply(c,shared.nokeyerr);
+        addReply(c,shared.czero);
     } else {
         if (o->type != REDIS_LIST) {
             addReply(c,shared.wrongtypeerr);