summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/posix/src/pthread.c2
-rw-r--r--cpukit/posix/src/pthread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index b4c1e7e1f4..95213389cb 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -998,7 +998,7 @@ int pthread_create(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
- api->detachstate = attr->detachstate;
+ api->detachstate = the_attr->detachstate;
api->schedpolicy = schedpolicy;
api->schedparam = schedparam;
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c
index b4c1e7e1f4..95213389cb 100644
--- a/cpukit/posix/src/pthread.c
+++ b/cpukit/posix/src/pthread.c
@@ -998,7 +998,7 @@ int pthread_create(
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
- api->detachstate = attr->detachstate;
+ api->detachstate = the_attr->detachstate;
api->schedpolicy = schedpolicy;
api->schedparam = schedparam;