]> granicus.if.org Git - libevent/commit
Avoid crash when event_pending() called with no event_base set on event
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Nov 2012 16:55:27 +0000 (11:55 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Nov 2012 16:56:56 +0000 (11:56 -0500)
commite3cccf380c23891089d7c3a4637cac50010a600d
treec721841116455bbf311aa76a2a0c49ca45442fe5
parentac356502d313ff7712a43e2e8361d7302d8f8c0c
Avoid crash when event_pending() called with no event_base set on event

Instead, give a warning and return 0.

Reported by Antony Dovgal on github as
   https://github.com/libevent/libevent/issues/19
event.c