Commit 5e26ae88 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

last argument is never encoded for HINCRBY

parent 4005fef1
...@@ -6037,10 +6037,7 @@ static void hincrbyCommand(redisClient *c) { ...@@ -6037,10 +6037,7 @@ static void hincrbyCommand(redisClient *c) {
} }
} }
robj *o_incr = getDecodedObject(c->argv[3]); incr = strtoll(c->argv[3]->ptr, NULL, 10);
incr = strtoll(o_incr->ptr, NULL, 10);
decrRefCount(o_incr);
if (o->encoding == REDIS_ENCODING_ZIPMAP) { if (o->encoding == REDIS_ENCODING_ZIPMAP) {
unsigned char *zm = o->ptr; unsigned char *zm = o->ptr;
unsigned char *zval; unsigned char *zval;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment