diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-09-20 15:27:23 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-09-20 16:07:24 +0200 |
| commit | 448d690a354c3ea481aba6254a285937d843cf81 (patch) | |
| tree | c3c0397bba55d7629b9a0311708096791aecc4ef /lib/event.c | |
| parent | 592011b25160ed6bc476e6855784ed2a7c8f3bc6 (diff) | |
lib: random make-coverity-happy nits
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
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; /* |
