Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
d4699989
Commit
d4699989
authored
Jan 30, 2017
by
Hyungjin Kim
Browse files
Use cached local variable instead using accessor
parent
be76c56b
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
d4699989
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment