Permalink
Browse files

last argument is never encoded for HINCRBY

  • Loading branch information...
pietern committed Apr 5, 2010
1 parent 4005fef commit 5e26ae88b8082090263281737f918b2a3ad71706
Showing with 1 addition and 4 deletions.
  1. +1 −4 redis.c
View
@@ -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;

0 comments on commit 5e26ae8

Please sign in to comment.