diff options
Diffstat (limited to 'lib/libkse/thread/thr_mattr_init.c')
-rw-r--r-- | lib/libkse/thread/thr_mattr_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_mattr_init.c b/lib/libkse/thread/thr_mattr_init.c index 323c982..73226a6 100644 --- a/lib/libkse/thread/thr_mattr_init.c +++ b/lib/libkse/thread/thr_mattr_init.c @@ -45,8 +45,7 @@ pthread_mutexattr_init(pthread_mutexattr_t *attr) if ((pattr = (pthread_mutexattr_t) malloc(sizeof(struct pthread_mutex_attr))) == NULL) { - errno = ENOMEM; - ret = -1; + ret = ENOMEM; } else { memcpy(pattr, &pthread_mutexattr_default, sizeof(struct pthread_mutex_attr)); |