From: Paul Eggert Date: Fri, 24 Jun 2005 17:33:58 +0000 (+0000) Subject: (canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to initialize local `hint'. X-Git-Tag: CPPI-1_12~490 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=406929bb9ddcda72ed3bded33af574f9e5812302;p=platform%2Fupstream%2Fcoreutils.git (canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to initialize local `hint'. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index f71d0fc..eb9418b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-06-24 Paul Eggert + + * canon-host.c (canon_host) [HAVE_GETADDRINFO]: Use `= { 0, };' to + initialize local `hint'. This undoes the previous change, and + syncs with gnulib. + 2005-06-23 Jim Meyering * Makefile.am (libcoreutils_a_SOURCES): Remove xreadlink.c diff --git a/lib/canon-host.c b/lib/canon-host.c index a36428d..0d469ba 100644 --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -54,9 +54,8 @@ canon_host (char const *host) #if HAVE_GETADDRINFO { - struct addrinfo hint; + struct addrinfo hint = { 0, }; struct addrinfo *res = NULL; - memset (&hint, 0, sizeof hint); hint.ai_flags = AI_CANONNAME; if (getaddrinfo (host, NULL, &hint, &res) == 0) {