diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-19 11:15:46 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-19 17:37:38 +0200 |
commit | 7011d7ef188de916b8428acc40efd5264b268d8d (patch) | |
tree | ea3de29063026b749082218715b56768c3d26f7e /source3 | |
parent | f1c90e12f500201975ca63f175a48575bc9a7505 (diff) | |
download | samba-7011d7ef188de916b8428acc40efd5264b268d8d.tar.gz samba-7011d7ef188de916b8428acc40efd5264b268d8d.tar.bz2 samba-7011d7ef188de916b8428acc40efd5264b268d8d.zip |
s3: Fix Coverity ID 2743: CHECKED_RETURN
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/background.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/background.c b/source3/lib/background.c index aa2a77d59a..6a9178376c 100644 --- a/source3/lib/background.c +++ b/source3/lib/background.c @@ -121,9 +121,12 @@ static void background_job_trigger( struct background_job_state *state = talloc_get_type_abort( private_data, struct background_job_state); - if (state->wakeup_req != NULL) { - tevent_req_set_endtime(state->wakeup_req, state->ev, - timeval_zero()); + if (state->wakeup_req == NULL) { + return; + } + if (!tevent_req_set_endtime(state->wakeup_req, state->ev, + timeval_zero())) { + DEBUG(10, ("tevent_req_set_endtime failed\n")); } } |