mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 13:24:43 -04:00
Add missing return value in event_base_foreach_event
Fix for github issue nmathewson/Libevent #65 Found by Joachim Bauch
This commit is contained in:
parent
232055ef49
commit
ffe1643b98
2
event.c
2
event.c
@ -3314,7 +3314,7 @@ event_base_foreach_event(struct event_base *base,
|
|||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
if ((!fn) || (!base)) {
|
if ((!fn) || (!base)) {
|
||||||
return;
|
return -1;
|
||||||
}
|
}
|
||||||
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
|
EVBASE_ACQUIRE_LOCK(base, th_base_lock);
|
||||||
r = event_base_foreach_event_nolock_(base, fn, arg);
|
r = event_base_foreach_event_nolock_(base, fn, arg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user