diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-04-11 18:37:52 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-04-11 18:37:52 +0200 |
commit | d450a1d1b8a3c5d391dcadd36e3b6b5934459381 (patch) | |
tree | 7062c05bf9bf72b3f7f1634d6154937d8a7e2474 | |
parent | 237cf9c6c05616c20726175406d0855a8d0d4233 (diff) |
Fix uninitialized variable
Change-Id: Ia8a7a1471f004933a48797b91c01fd8b53465de0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-evt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-evt.c b/src/afb-evt.c index 2abbc819..88b6d603 100644 --- a/src/afb-evt.c +++ b/src/afb-evt.c @@ -234,6 +234,7 @@ static void evt_destroy(struct afb_evt_event *evt) if (evt != NULL) { /* unlinks the event if valid! */ pthread_mutex_lock(&events_mutex); + found = 0; prv = &events; while (*prv && !(found = (*prv == evt))) prv = &(*prv)->next; |