(gai_suspend): Make sure result is initialized.
authordrepper <drepper>
Wed, 6 Sep 2006 16:48:25 +0000 (16:48 +0000)
committerdrepper <drepper>
Wed, 6 Sep 2006 16:48:25 +0000 (16:48 +0000)
resolv/gai_suspend.c

index c209512..4d85ac2 100644 (file)
@@ -83,6 +83,7 @@ gai_suspend (const struct gaicb *const list[], int ent,
       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)