Fixes:
lib/tevent/tevent_wrapper.c:213:6: warning: Access to field 'destroyed' results in a dereference of a null pointer (loaded from variable 'glue') <--[clang]
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer gary@catalyst.net.nz
if (glue == NULL) {
tevent_abort(wrap_ev,
"tevent_wrapper_context_destructor() active on main");
+ /* static checker support, return below is never reached */
+ return -1;
}
if (glue->destroyed && glue->busy) {