Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/libexec/telnetd Pull up revision 1.47 (requested by lukem...



details:   https://anonhg.NetBSD.org/src/rev/dc106cf76d44
branches:  netbsd-3
changeset: 576202:dc106cf76d44
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 13 22:07:52 2005 +0000

description:
Pull up revision 1.47 (requested by lukem in ticket #400):
Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.

diffstat:

 libexec/telnetd/telnetd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a5b39f0d4d05 -r dc106cf76d44 libexec/telnetd/telnetd.c
--- a/libexec/telnetd/telnetd.c Mon Jun 13 22:06:40 2005 +0000
+++ b/libexec/telnetd/telnetd.c Mon Jun 13 22:07:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: telnetd.c,v 1.46 2005/02/06 05:58:21 perry Exp $       */
+/*     $NetBSD: telnetd.c,v 1.46.2.1 2005/06/13 22:07:52 tron Exp $    */
 
 /*
  * Copyright (C) 1997 and 1998 WIDE Project.
@@ -65,7 +65,7 @@
 #if 0
 static char sccsid[] = "@(#)telnetd.c  8.4 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: telnetd.c,v 1.46 2005/02/06 05:58:21 perry Exp $");
+__RCSID("$NetBSD: telnetd.c,v 1.46.2.1 2005/06/13 22:07:52 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -913,6 +913,7 @@
        } else {
                IM = DEFAULT_IM;
                HE = 0;
+               IF = NULL;
        }
        edithost(HE, host_name);
        ptyibuf2ptr = ptyibuf2;



Home | Main Index | Thread Index | Old Index