diff options
Diffstat (limited to 'nptl/pthread_attr_init.c')
-rw-r--r-- | nptl/pthread_attr_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/pthread_attr_init.c b/nptl/pthread_attr_init.c index b202d46bd3..b1242d318f 100644 --- a/nptl/pthread_attr_init.c +++ b/nptl/pthread_attr_init.c @@ -80,12 +80,16 @@ __pthread_attr_init_2_0 (attr) int inheritsched; int scope; }; + struct pthread_attr *iattr; /* Many elements are initialized to zero so let us do it all at once. This also takes care of clearing the bytes which are not internally used. */ memset (attr, '\0', sizeof (struct old_attr)); + iattr = (struct pthread_attr *) attr; + iattr->flags |= ATTR_FLAG_OLDATTR; + /* We cannot enqueue the attribute because that member is not in the old attribute structure. */ return 0; |