Don't segfault on no found event backend.

This commit is contained in:
Joakim Soderberg 2013-12-16 13:45:45 +01:00
parent 78da644f3d
commit 8f2af50f38

View File

@ -183,7 +183,8 @@ main(int argc, char **argv)
return (1);
/* Initalize the event library */
base = event_base_new();
if (!(base = event_base_new()))
return (1);
/* Initalize a timeout to terminate the test */
timeout = evtimer_new(base,timeout_cb,&timeout);