about summary refs log tree commit diff
path: root/nptl/pthread_condattr_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_init.c')
-rw-r--r--nptl/pthread_condattr_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_init.c b/nptl/pthread_condattr_init.c
index 0ce42e5dfa..6e5168dadd 100644
--- a/nptl/pthread_condattr_init.c
+++ b/nptl/pthread_condattr_init.c
@@ -23,7 +23,9 @@
 int
 __pthread_condattr_init (pthread_condattr_t *attr)
 {
-  memset (attr, '\0', sizeof (*attr));
+  struct pthread_condattr *iattr = (struct pthread_condattr *) attr;
+  /* Default is not pshared and CLOCK_REALTIME.  */
+  iattr-> value = CLOCK_REALTIME << 1;
 
   return 0;
 }