mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
last argument is never encoded for HINCRBY
This commit is contained in:
parent
4005fef124
commit
5e26ae88b8
5
redis.c
5
redis.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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user