mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
Don't segfault on no found event backend.
This commit is contained in:
parent
78da644f3d
commit
8f2af50f38
@ -183,7 +183,8 @@ main(int argc, char **argv)
|
|||||||
return (1);
|
return (1);
|
||||||
|
|
||||||
/* Initalize the event library */
|
/* Initalize the event library */
|
||||||
base = event_base_new();
|
if (!(base = event_base_new()))
|
||||||
|
return (1);
|
||||||
|
|
||||||
/* Initalize a timeout to terminate the test */
|
/* Initalize a timeout to terminate the test */
|
||||||
timeout = evtimer_new(base,timeout_cb,&timeout);
|
timeout = evtimer_new(base,timeout_cb,&timeout);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user