mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 06:49:35 -04:00
Fix a (failure-only) null dereference in the unit tests
This commit is contained in:
parent
7080d55c49
commit
1104d0bee9
@ -2916,6 +2916,7 @@ test_gettimeofday_cached(void *arg)
|
|||||||
event_config_set_flag(cfg, EVENT_BASE_FLAG_NO_CACHE_TIME);
|
event_config_set_flag(cfg, EVENT_BASE_FLAG_NO_CACHE_TIME);
|
||||||
}
|
}
|
||||||
cached_time_base = base = event_base_new_with_config(cfg);
|
cached_time_base = base = event_base_new_with_config(cfg);
|
||||||
|
tt_assert(base);
|
||||||
|
|
||||||
/* Try gettimeofday_cached outside of an event loop. */
|
/* Try gettimeofday_cached outside of an event loop. */
|
||||||
evutil_gettimeofday(&now, NULL);
|
evutil_gettimeofday(&now, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user