From c595f6d25e9cda58f5327c5806e2c9a534c454f9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 4 Feb 2016 12:37:00 -0500 Subject: Add an assertion to tor_libevent_get_base() Closes ticket 18241. --- src/common/compat_libevent.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common') diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index 29e5c5f63c..c367ee4edb 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -247,6 +247,7 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg) MOCK_IMPL(struct event_base *, tor_libevent_get_base, (void)) { + tor_assert(the_event_base != NULL); return the_event_base; } -- cgit v1.2.3-54-g00ecf