[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Properly ignore retval of event_del().



commit efe8f17a4dc48d43cbc0a523c9dc0560771ff2c5
Author: George Kadianakis <desnacked@xxxxxxxxxx>
Date:   Fri May 11 15:17:52 2018 +0300

    Properly ignore retval of event_del().
    
    Fixes #26078: CID 1435546.
---
 src/common/compat_libevent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 56ee682fd..e60eb148d 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -283,7 +283,7 @@ void
 periodic_timer_disable(periodic_timer_t *timer)
 {
   tor_assert(timer);
-  event_del(timer->ev);
+  (void) event_del(timer->ev);
 }
 
 /** Stop and free a periodic timer */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits