diff --git a/include/threads.h b/include/threads.h index 6873f7b9dd..037318f569 100644 --- a/include/threads.h +++ b/include/threads.h @@ -159,7 +159,7 @@ typedef CODE void (*tss_dtor_t)(FAR void *); static inline int thrd_join(thrd_t thr, int *res) { - pthread_addr_t *value; + pthread_addr_t value; int ret = pthread_join(thr, &value); if (res) {