]> git.saurik.com Git - redis.git/commitdiff
last argument is never encoded for HINCRBY
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Mon, 5 Apr 2010 14:51:34 +0000 (16:51 +0200)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Mon, 5 Apr 2010 14:51:34 +0000 (16:51 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 9e5bc94a933cad353596031591fa1f013efce338..e4ddd99c0431dde468c651843883bbbabedbdd76 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -6037,10 +6037,7 @@ static void hincrbyCommand(redisClient *c) {
         }
     }
 
-    robj *o_incr = getDecodedObject(c->argv[3]);
-    incr = strtoll(o_incr->ptr, NULL, 10);
-    decrRefCount(o_incr);
-
+    incr = strtoll(c->argv[3]->ptr, NULL, 10);
     if (o->encoding == REDIS_ENCODING_ZIPMAP) {
         unsigned char *zm = o->ptr;
         unsigned char *zval;