fix potential uninitialized read
If callback was set before scheduleTimer was set (i..e before one of the attach()) calls.
This commit is contained in:
parent
0bc2356ed5
commit
5f633ac4ec
1
async.c
1
async.c
@ -144,6 +144,7 @@ static redisAsyncContext *redisAsyncInitialize(redisContext *c) {
|
|||||||
ac->ev.addWrite = NULL;
|
ac->ev.addWrite = NULL;
|
||||||
ac->ev.delWrite = NULL;
|
ac->ev.delWrite = NULL;
|
||||||
ac->ev.cleanup = NULL;
|
ac->ev.cleanup = NULL;
|
||||||
|
ac->ev.scheduleTimer = NULL;
|
||||||
|
|
||||||
ac->onConnect = NULL;
|
ac->onConnect = NULL;
|
||||||
ac->onDisconnect = NULL;
|
ac->onDisconnect = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user