mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05: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(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;
|
||||
|
Loading…
Reference in New Issue
Block a user