1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
2003-02-23  Ulrich Drepper  <drepper@redhat.com>

	* resolv/res_libc.c [USE___THREAD] (_res): Initialize _vcsock
	element to -1.
This commit is contained in:
Ulrich Drepper
2003-02-23 09:16:11 +00:00
parent b1b8e747d4
commit fd1a0d0c7c
5 changed files with 40 additions and 26 deletions

View File

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