mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08: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);
|
||||
}
|
||||
cached_time_base = base = event_base_new_with_config(cfg);
|
||||
tt_assert(base);
|
||||
|
||||
/* Try gettimeofday_cached outside of an event loop. */
|
||||
evutil_gettimeofday(&now, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user