aboutsummaryrefslogtreecommitdiff
path: root/nptl/init.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-10-15 20:25:25 +0000
committerJakub Jelinek <jakub@redhat.com>2007-10-15 20:25:25 +0000
commite807818b5d83995e92b1bfb20ea8eb108b5d5d1f (patch)
treede3a15a0acba6491165f827181f9f9143467a995 /nptl/init.c
parent2884dad43cc3c0cbf046caa0a96d7883e5ed0443 (diff)
downloadglibc-e807818b5d83995e92b1bfb20ea8eb108b5d5d1f.tar
glibc-e807818b5d83995e92b1bfb20ea8eb108b5d5d1f.tar.gz
glibc-e807818b5d83995e92b1bfb20ea8eb108b5d5d1f.tar.bz2
glibc-e807818b5d83995e92b1bfb20ea8eb108b5d5d1f.zip
* init.c (__pthread_initialize_minimal): Initialize word to appease
valgrind. 2007-10-15 Jakub Jelinek <jakub@redhat.com> * init.c (__pthread_initialize_minimal): Initialize word to appease valgrind.
Diffstat (limited to 'nptl/init.c')
-rw-r--r--nptl/init.c2
1 files changed, 1 insertions, 1 deletions
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))