diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_condattr_destroy.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_condattr_destroy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_condattr_destroy.c b/lib/libc_r/uthread/uthread_condattr_destroy.c index b20f183..4179970 100644 --- a/lib/libc_r/uthread/uthread_condattr_destroy.c +++ b/lib/libc_r/uthread/uthread_condattr_destroy.c @@ -40,8 +40,7 @@ int pthread_condattr_destroy(pthread_condattr_t *attr) { int ret; if (attr == NULL || *attr == NULL) { - errno = EINVAL; - ret = -1; + ret = EINVAL; } else { free(*attr); *attr = NULL; |