summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-08-01 01:21:49 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-08-01 01:21:49 +0000
commit0cc238e33974e4198f76ec49aab623bd9510bcd3 (patch)
treec34c7a9ef8f603a8069a484a848737192b38d586 /lib
parent1d5516fdb1e621214d5f492b2fe911012c765bd5 (diff)
downloadFreeBSD-src-0cc238e33974e4198f76ec49aab623bd9510bcd3.zip
FreeBSD-src-0cc238e33974e4198f76ec49aab623bd9510bcd3.tar.gz
In function pthread_condattr_getpshared, store result correctly.
PR: kern/126128
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_condattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_condattr.c b/lib/libthr/thread/thr_condattr.c
index c8f1703..f2b126f 100644
--- a/lib/libthr/thread/thr_condattr.c
+++ b/lib/libthr/thread/thr_condattr.c
@@ -111,7 +111,7 @@ _pthread_condattr_getpshared(const pthread_condattr_t *attr,
if (attr == NULL || *attr == NULL)
return (EINVAL);
- pshared = PTHREAD_PROCESS_PRIVATE;
+ *pshared = PTHREAD_PROCESS_PRIVATE;
return (0);
}
OpenPOWER on IntegriCloud