Ensure IF is initialized before trying to use it.
Found with -Wuninitialized.
This commit is contained in:
parent
7005d4ef81
commit
d066333b1b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: telnetd.c,v 1.46 2005/02/06 05:58:21 perry Exp $ */
|
||||
/* $NetBSD: telnetd.c,v 1.47 2005/06/01 15:57:40 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 and 1998 WIDE Project.
|
||||
@ -65,7 +65,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
||||
#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.47 2005/06/01 15:57:40 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -913,6 +913,7 @@ telnet(int f, int p)
|
||||
} else {
|
||||
IM = DEFAULT_IM;
|
||||
HE = 0;
|
||||
IF = NULL;
|
||||
}
|
||||
edithost(HE, host_name);
|
||||
ptyibuf2ptr = ptyibuf2;
|
||||
|
Loading…
Reference in New Issue
Block a user