Commit d4699989 authored by Hyungjin Kim's avatar Hyungjin Kim
Browse files

Use cached local variable instead using accessor

parent be76c56b
...@@ -395,7 +395,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply, ...@@ -395,7 +395,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
cb->pending_subs -= 1; cb->pending_subs -= 1;
} }
memcpy(dstcb,dictGetEntryVal(de),sizeof(*dstcb)); memcpy(dstcb,cb,sizeof(*dstcb));
/* If this is an unsubscribe message, remove it. */ /* If this is an unsubscribe message, remove it. */
if (strcasecmp(stype+pvariant,"unsubscribe") == 0) { if (strcasecmp(stype+pvariant,"unsubscribe") == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment