]> granicus.if.org Git - libevent/commitdiff
Fix a (failure-only) null dereference in the unit tests
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:31:26 +0000 (19:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:31:26 +0000 (19:31 -0400)
test/regress.c

index 6ab509132c10b328bf5c938b264e4eb5dec33c53..0560ef195b11227cc04473f24a77482b298b32fc 100644 (file)
@@ -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);