# HG changeset patch # User Paul Eggert # Date 1119634233 0 # Node ID fe449ec53f0d87e21dca15803c8bc72d140c7aea # Parent 35504bd557fadad8071398bd3102ede3526136ee * canon-host.c (canon-host): Append trailing "," to 0 in initializer of struct addrinfo, as an indication that we don't care how many members the structure has. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-06-24 Paul Eggert + + * canon-host.c (canon-host): Append trailing "," to 0 in + initializer of struct addrinfo, as an indication that we don't + care how many members the structure has. + 2005-06-24 Derek Price and Bruno Haible diff --git a/lib/canon-host.c b/lib/canon-host.c --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -1,6 +1,6 @@ /* Host name canonicalization - Copyright (C) 1995, 1999, 2000, 2002, 2003, 2004 Free Software + Copyright (C) 1995, 1999, 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Miles Bader @@ -54,7 +54,7 @@ #if HAVE_GETADDRINFO { - struct addrinfo hint = { 0 }; + struct addrinfo hint = { 0, }; struct addrinfo *res = NULL; hint.ai_flags = AI_CANONNAME; if (getaddrinfo (host, NULL, &hint, &res) == 0)