From e807818b5d83995e92b1bfb20ea8eb108b5d5d1f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 15 Oct 2007 20:25:25 +0000 Subject: [PATCH] * init.c (__pthread_initialize_minimal): Initialize word to appease valgrind. 2007-10-15 Jakub Jelinek * init.c (__pthread_initialize_minimal): Initialize word to appease valgrind. --- nptl/ChangeLog | 5 +++++ nptl/init.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index b7c03dc330..85edbbe11d 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2007-10-15 Jakub Jelinek + + * init.c (__pthread_initialize_minimal): Initialize word to appease + valgrind. + 2007-10-10 Jakub Jelinek * sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of diff --git a/nptl/init.c b/nptl/init.c index ffb50b4cca..d445de0795 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -284,7 +284,7 @@ __pthread_initialize_minimal_internal (void) /* Private futexes are always used (at least internally) so that doing the test once this early is beneficial. */ { - int word; + int word = 0; word = INTERNAL_SYSCALL (futex, err, 3, &word, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1); if (!INTERNAL_SYSCALL_ERROR_P (word, err))