last argument is never encoded for HINCRBY

This commit is contained in:
Pieter Noordhuis 2010-04-05 16:51:34 +02:00
parent 4005fef124
commit 5e26ae88b8

View File

@ -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;