summaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorHyungjin Kim <kim@hyjin.com>2017-01-30 20:01:01 +0900
committerHyungjin Kim <kim@hyjin.com>2017-01-30 20:01:01 +0900
commitd4699989ca9d5074d1843cfd0510fb24310583c3 (patch)
tree6faf63e0b9d93da51d57f5220116ba663c88abf4 /async.c
parentbe76c56b519a0390a7d7b0535685cdaa8254388e (diff)
Use cached local variable instead using accessor
Diffstat (limited to 'async.c')
-rw-r--r--async.c2
1 files changed, 1 insertions, 1 deletions
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) {