* 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.
This commit is contained in:
Jakub Jelinek 2007-10-15 20:25:25 +00:00
parent 2884dad43c
commit e807818b5d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-15 Jakub Jelinek <jakub@redhat.com>
* init.c (__pthread_initialize_minimal): Initialize word to appease
valgrind.
2007-10-10 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/bits/libc-lock.h (__libc_rwlock_init): Inside of

View File

@ -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))