* [PATCH] Fix uninitialized var in gai_suspend
@ 2006-09-06 16:37 Jakub Jelinek
2006-09-06 16:49 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2006-09-06 16:37 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
Hi!
GAI_MISC_WAIT macro only sets result on error, so without this patch
we return an uninitialized value.
2006-09-06 Jakub Jelinek <jakub@redhat.com>
* resolv/gai_suspend.c (gai_suspend): Make sure result is initialized.
--- libc/resolv/gai_suspend.c.jj 2006-08-03 10:03:46.000000000 +0200
+++ libc/resolv/gai_suspend.c 2006-09-06 17:30:22.000000000 +0200
@@ -83,6 +83,7 @@ gai_suspend (const struct gaicb *const l
pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &oldstate);
#ifdef DONT_NEED_GAI_MISC_COND
+ result = 0;
GAI_MISC_WAIT (result, cntr, timeout, 1);
#else
if (timeout == NULL)
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix uninitialized var in gai_suspend
2006-09-06 16:37 [PATCH] Fix uninitialized var in gai_suspend Jakub Jelinek
@ 2006-09-06 16:49 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2006-09-06 16:49 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: Glibc hackers
[-- Attachment #1: Type: text/plain, Size: 101 bytes --]
Applied.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-06 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06 16:37 [PATCH] Fix uninitialized var in gai_suspend Jakub Jelinek
2006-09-06 16:49 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).