* sane_hostname.c (pty_make_sane_hostname): Always initialize "ai"
authorKen Raeburn <raeburn@mit.edu>
Sat, 25 May 2002 01:15:57 +0000 (01:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 25 May 2002 01:15:57 +0000 (01:15 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14450 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/sane_hostname.c

index 11bf298f0db30a953f76dca2a0006a43339b630f..de9929ce2c000be47fa72bc7b25544dcef8ffec7 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-24  Ken Raeburn  <raeburn@mit.edu>
+
+       * sane_hostname.c (pty_make_sane_hostname): Always initialize
+       "ai".
+
 2002-03-26  Ken Raeburn  <raeburn@mit.edu>
 
        * sane_hostname.c: Include fake-addrinfo.h, not fake-addrinfo.c.
index e22d0395883fefbed1dfef7c5d44fa506425ee41..3df0d177638180481dc0a20d39d21907fcffb2da 100644 (file)
@@ -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;