summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_mattr_init.c
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
commit09bb0da60cdda81d524e1252636e5ae5d01e6b56 (patch)
tree7df2107cb14b747d86e7667a8e44591c95fe05ea /lib/libpthread/thread/thr_mattr_init.c
parent3234f7c1cc2d1adb7150b06de37c92a76bafc5fa (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mattr_init.c')
-rw-r--r--lib/libpthread/thread/thr_mattr_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_mattr_init.c b/lib/libpthread/thread/thr_mattr_init.c
index 323c982355c5..73226a6b4714 100644
--- a/lib/libpthread/thread/thr_mattr_init.c
+++ b/lib/libpthread/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));