aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-23 09:16:11 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-23 09:16:11 +0000
commitfd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1 (patch)
tree9424762e7186f406620afa8c76541fa261b99269 /resolv
parentb1b8e747d4c35ff924a0247041e276e1abf2faf7 (diff)
downloadglibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar.gz
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.tar.bz2
glibc-fd1a0d0c7c23487e2ec8e1fc60036f1165f30ce1.zip
Update.
2003-02-23 Ulrich Drepper <drepper@redhat.com> * resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock element to -1.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_libc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_libc.c b/resolv/res_libc.c
index 763a88725a..a700e9d9b6 100644
--- a/resolv/res_libc.c
+++ b/resolv/res_libc.c
@@ -72,7 +72,7 @@ res_init(void) {
#if USE___THREAD
/* With __thread support, this per-thread variable is used in all cases. */
-__thread struct __res_state _res;
+__thread struct __res_state _res = { ._vcsock = -1 };
extern __thread struct __res_state __libc_res __attribute__ ((alias ("_res")))
attribute_hidden;
# define _res __libc_res