about summary refs log tree commit diff
path: root/resolv/nss_dns/dns-canon.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-19 18:56:52 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-19 18:56:52 +0000
commit10b71c3d31c7a4fe437fdda6b5730479414e935a (patch)
tree3d509f8c0f00244f4025f2571a72261f3b1072b2 /resolv/nss_dns/dns-canon.c
parentb6c0f679b1f8f918bbee34e2a8000dac0b9277dc (diff)
downloadglibc-10b71c3d31c7a4fe437fdda6b5730479414e935a.tar.gz
glibc-10b71c3d31c7a4fe437fdda6b5730479414e935a.tar.xz
glibc-10b71c3d31c7a4fe437fdda6b5730479414e935a.zip
Update.
2004-08-19  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *)
	to avoid warning.

	* resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize
	status to NSS_STATUS_UNAVAIL.

2004-08-19  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the
	cannoname lookup since it has the FQDN even if the original NAME
	value has not.
Diffstat (limited to 'resolv/nss_dns/dns-canon.c')
-rw-r--r--resolv/nss_dns/dns-canon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/nss_dns/dns-canon.c b/resolv/nss_dns/dns-canon.c
index ae3f40ba0a..91708df51f 100644
--- a/resolv/nss_dns/dns-canon.c
+++ b/resolv/nss_dns/dns-canon.c
@@ -52,7 +52,7 @@ _nss_dns_getcanonname_r (const char *name, char *buffer, size_t buflen,
     querybuf *buf;
     unsigned char *ptr;
   } ansp = { .ptr = buf };
-  enum nss_status status;
+  enum nss_status status = NSS_STATUS_UNAVAIL;
   int qtypes[] = { ns_t_a, ns_t_aaaa };
 #define nqtypes (sizeof (qtypes) / sizeof (qtypes[0]))