summaryrefslogtreecommitdiff
path: root/pthread_attr_getdetachstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_attr_getdetachstate.c')
-rw-r--r--pthread_attr_getdetachstate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pthread_attr_getdetachstate.c b/pthread_attr_getdetachstate.c
index 978f288..188533b 100644
--- a/pthread_attr_getdetachstate.c
+++ b/pthread_attr_getdetachstate.c
@@ -78,7 +78,6 @@ pthread_attr_getdetachstate (const pthread_attr_t * attr, int *detachstate)
{
if (ptw32_is_attr (attr) != 0 || detachstate == NULL)
{
- *detachstate = PTHREAD_CREATE_DETACHED;
return EINVAL;
}