diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-09-21 06:31:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 06:31:58 -0400 |
| commit | cd3bd19314ac86c25a7831f995947fae67c6706d (patch) | |
| tree | c5b67cd6b3b62a8bea736777a026024b3805e561 /lib/event.c | |
| parent | d81e492368b8b78ab1f4fbaba3e72d93c3958608 (diff) | |
| parent | 448d690a354c3ea481aba6254a285937d843cf81 (diff) | |
Merge pull request #14454 from opensourcerouting/coverity-20230920
lib: fix a bunch of coverity nits
Diffstat (limited to 'lib/event.c')
| -rw-r--r-- | lib/event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/event.c b/lib/event.c index 37a30d2511..458e29f248 100644 --- a/lib/event.c +++ b/lib/event.c @@ -791,7 +791,12 @@ static struct event *thread_get(struct event_loop *m, uint8_t type, thread->master = m; thread->arg = arg; thread->yield = EVENT_YIELD_TIME_SLOT; /* default */ - thread->ref = NULL; + /* thread->ref is zeroed either by XCALLOC above or by memset before + * being put on the "unuse" list by thread_add_unuse(). + * Setting it here again makes coverity complain about a missing + * lock :( + */ + /* thread->ref = NULL; */ thread->ignore_timer_late = false; /* |
