diff options
Diffstat (limited to 'lib/libkse/thread/thr_mutexattr_destroy.c')
-rw-r--r-- | lib/libkse/thread/thr_mutexattr_destroy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_mutexattr_destroy.c b/lib/libkse/thread/thr_mutexattr_destroy.c index cf2e09f..5642cbe 100644 --- a/lib/libkse/thread/thr_mutexattr_destroy.c +++ b/lib/libkse/thread/thr_mutexattr_destroy.c @@ -40,8 +40,7 @@ int pthread_mutexattr_destroy(pthread_mutexattr_t *attr) { int ret; if (attr == NULL || *attr == NULL) { - errno = EINVAL; - ret = -1; + ret = EINVAL; } else { free(*attr); *attr = NULL; |