Use cached local variable instead using accessor

This commit is contained in:
Hyungjin Kim 2017-01-30 20:01:01 +09:00
parent be76c56b51
commit d4699989ca

View File

@ -395,7 +395,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
cb->pending_subs -= 1;
}
memcpy(dstcb,dictGetEntryVal(de),sizeof(*dstcb));
memcpy(dstcb,cb,sizeof(*dstcb));
/* If this is an unsubscribe message, remove it. */
if (strcasecmp(stype+pvariant,"unsubscribe") == 0) {