From ffe1643b98663d0dcfa5641a663b699e24ef2c33 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 10 Sep 2012 13:43:26 -0400 Subject: [PATCH] Add missing return value in event_base_foreach_event Fix for github issue nmathewson/Libevent #65 Found by Joachim Bauch --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.c b/event.c index 3e917fb9..c209213a 100644 --- a/event.c +++ b/event.c @@ -3314,7 +3314,7 @@ event_base_foreach_event(struct event_base *base, { int r; if ((!fn) || (!base)) { - return; + return -1; } EVBASE_ACQUIRE_LOCK(base, th_base_lock); r = event_base_foreach_event_nolock_(base, fn, arg); -- 2.40.0