[tor-commits] [tor/master] compat: Fix unchecked return value from event_del()

dgoulet at torproject.org dgoulet at torproject.org
Mon Apr 9 18:15:08 UTC 2018


commit 395fa0258d56b24e39cd714834ffe0dcb365ea25
Author: David Goulet <dgoulet at torproject.org>
Date:   Mon Apr 9 14:09:40 2018 -0400

    compat: Fix unchecked return value from event_del()
    
    Explicitly tell the compiler we don't care about it.
    
    Coverity CID 1434156
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 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 cb311ea46..0d0e4337b 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -322,7 +322,7 @@ mainloop_event_cancel(mainloop_event_t *event)
 {
   if (!event)
     return;
-  event_del(event->ev);
+  (void) event_del(event->ev);
 }
 
 /** Cancel <b>event</b> and release all storage associated with it. */



More information about the tor-commits mailing list