diff options
author | Hyungjin Kim <kim@hyjin.com> | 2017-01-30 20:01:01 +0900 |
---|---|---|
committer | Hyungjin Kim <kim@hyjin.com> | 2017-01-30 20:01:01 +0900 |
commit | d4699989ca9d5074d1843cfd0510fb24310583c3 (patch) | |
tree | 6faf63e0b9d93da51d57f5220116ba663c88abf4 | |
parent | be76c56b519a0390a7d7b0535685cdaa8254388e (diff) | |
download | hiredict-d4699989ca9d5074d1843cfd0510fb24310583c3.tar.xz |
Use cached local variable instead using accessor
-rw-r--r-- | async.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |