From: Ken Raeburn Date: Sat, 25 May 2002 01:15:57 +0000 (+0000) Subject: * sane_hostname.c (pty_make_sane_hostname): Always initialize "ai" X-Git-Tag: krb5-1.3-alpha1~749 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec45f2a3d8ee4a77adac76fa79d6c0f33a9f29d2;p=krb5.git * sane_hostname.c (pty_make_sane_hostname): Always initialize "ai" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14450 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 11bf298f0..de9929ce2 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,8 @@ +2002-05-24 Ken Raeburn + + * sane_hostname.c (pty_make_sane_hostname): Always initialize + "ai". + 2002-03-26 Ken Raeburn * sane_hostname.c: Include fake-addrinfo.h, not fake-addrinfo.c. diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c index e22d03958..3df0d1776 100644 --- a/src/util/pty/sane_hostname.c +++ b/src/util/pty/sane_hostname.c @@ -40,7 +40,7 @@ long pty_make_sane_hostname(const struct sockaddr *addr, int maxlen, int strip_ldomain, int always_ipaddr, char **out) { - struct addrinfo *ai; + struct addrinfo *ai = 0; char addrbuf[NI_MAXHOST]; #ifdef HAVE_STRUCT_UTMP_UT_HOST struct utmp ut;