diff options
Diffstat (limited to 'libc/nptl/pthread_getattr_np.c')
-rw-r--r-- | libc/nptl/pthread_getattr_np.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libc/nptl/pthread_getattr_np.c b/libc/nptl/pthread_getattr_np.c index 4bdc7b5b1..396e8a8ac 100644 --- a/libc/nptl/pthread_getattr_np.c +++ b/libc/nptl/pthread_getattr_np.c @@ -168,8 +168,12 @@ pthread_getattr_np (thread_id, attr) { free (cpuset); if (ret == ENOSYS) - /* There is no such functionality. */ - ret = 0; + { + /* There is no such functionality. */ + ret = 0; + iattr->cpuset = NULL; + iattr->cpusetsize = 0; + } } } |