mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix potential Null pointer dereference in regress_buffer.c
This commit is contained in:
parent
74217832a8
commit
6e390911d0
@ -1308,7 +1308,9 @@ test_evbuffer_add_file(void *ptr)
|
||||
addfile_test_writecb, src);
|
||||
rev = event_new(base, pair[1], EV_READ|EV_PERSIST,
|
||||
addfile_test_readcb, dest);
|
||||
|
||||
tt_assert(wev);
|
||||
tt_assert(rev);
|
||||
|
||||
event_add(wev, NULL);
|
||||
event_add(rev, NULL);
|
||||
event_base_dispatch(base);
|
||||
|
Loading…
x
Reference in New Issue
Block a user