From d4699989ca9d5074d1843cfd0510fb24310583c3 Mon Sep 17 00:00:00 2001 From: Hyungjin Kim Date: Mon, 30 Jan 2017 20:01:01 +0900 Subject: [PATCH] Use cached local variable instead using accessor --- async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async.c b/async.c index e3f5ac3..c27e012 100644 --- a/async.c +++ b/async.c @@ -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) {