summaryrefslogtreecommitdiff
path: root/src/thread/pthread_cond_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_cond_init.c')
-rw-r--r--src/thread/pthread_cond_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/thread/pthread_cond_init.c b/src/thread/pthread_cond_init.c
index 33948606..dc4fb981 100644
--- a/src/thread/pthread_cond_init.c
+++ b/src/thread/pthread_cond_init.c
@@ -3,5 +3,6 @@
int pthread_cond_init(pthread_cond_t *c, const pthread_condattr_t *a)
{
memset(c, 0, sizeof *c);
+ if (a) c->_c_clock = *a & 0x7fffffff;
return 0;
}