Fix potential Null pointer dereference in regress_et.c

This commit is contained in:
icy17 2024-04-10 17:45:03 +08:00 committed by Azat Khuzhin
parent d45dca4373
commit d6e8835256

View File

@ -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);