From 1104d0bee9d85306184fb5bbcef64bf1f00c0a24 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 6 Aug 2013 19:31:26 -0400 Subject: [PATCH] Fix a (failure-only) null dereference in the unit tests --- test/regress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/regress.c b/test/regress.c index 6ab50913..0560ef19 100644 --- a/test/regress.c +++ b/test/regress.c @@ -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); -- 2.40.0