diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-12-12 18:12:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 18:12:43 +0200 |
commit | dc7ca8644fcca2cc7d2a165dd614d7f00bd8eb7e (patch) | |
tree | e52e7b6fffda64e13bf76f79dc072bcbab0a2ecf /libnetdata/threads/threads.c | |
parent | 21462af834abcdf136c53d21379e74b2c7306839 (diff) |
code cleanup (#16542)
fixed minor code cleanup warnings
Diffstat (limited to 'libnetdata/threads/threads.c')
-rw-r--r-- | libnetdata/threads/threads.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libnetdata/threads/threads.c b/libnetdata/threads/threads.c index 0ac0b03adb..195d629cdf 100644 --- a/libnetdata/threads/threads.c +++ b/libnetdata/threads/threads.c @@ -276,8 +276,9 @@ static void *netdata_thread_init(void *ptr) { netdata_thread_set_tag(netdata_thread->tag); void *ret = NULL; - pthread_cleanup_push(thread_cleanup, ptr); - ret = netdata_thread->start_routine(netdata_thread->arg); + pthread_cleanup_push(thread_cleanup, ptr) { + ret = netdata_thread->start_routine(netdata_thread->arg); + } pthread_cleanup_pop(1); return ret; |