Skip to content

Commit

Permalink
thread: fix pthread_setname_np thread pointer deref (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Mar 25, 2023
1 parent 9d1b8d2 commit 5bc94ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int handler(void *p)
#elif defined(DARWIN)
(void)pthread_setname_np(th.name);
#elif defined(HAVE_PTHREAD)
(void)pthread_setname_np(th.thr, th.name);
(void)pthread_setname_np(*th.thr, th.name);
#endif

return th.func(th.arg);
Expand Down

0 comments on commit 5bc94ee

Please sign in to comment.