mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix potential Null pointer dereference in regress_et.c
This commit is contained in:
parent
d45dca4373
commit
d6e8835256
@ -228,6 +228,8 @@ test_edge_triggered_multiple_events(void *data_)
|
||||
read_notification_cb, NULL);
|
||||
write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST,
|
||||
write_notification_cb, NULL);
|
||||
tt_assert(read_ev);
|
||||
tt_assert(write_ev);
|
||||
|
||||
event_add(read_ev, NULL);
|
||||
event_add(write_ev, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user