diff options
author | Andrew Moss <1043609+amoss@users.noreply.github.com> | 2020-06-23 18:06:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 18:06:09 +0200 |
commit | 641a45923789b738a3c75183b5b44b6d26964c86 (patch) | |
tree | 3206f03d0d1148e19ec83f8dd5937e8f863821e0 /libnetdata/threads | |
parent | 93704281a5ae215f031c7c7c6b2c3706e9d097ca (diff) |
Fix Coverity Defect CID 304732 (#9402)
Fix a race-hazard in the shutdown sequence that could deadlock the agent.
Diffstat (limited to 'libnetdata/threads')
-rw-r--r-- | libnetdata/threads/threads.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libnetdata/threads/threads.c b/libnetdata/threads/threads.c index 8a2e292439..d7636940f7 100644 --- a/libnetdata/threads/threads.c +++ b/libnetdata/threads/threads.c @@ -157,8 +157,6 @@ void uv_thread_set_name_np(uv_thread_t ut, const char* name) { void os_thread_get_current_name_np(char threadname[NETDATA_THREAD_NAME_MAX + 1]) { - int ret = 0; - threadname[0] = '\0'; #if defined(__FreeBSD__) pthread_get_name_np(pthread_self(), threadname, NETDATA_THREAD_NAME_MAX + 1); |