Global variable is never a null pointer.
This commit is contained in:
parent
7c2828eb96
commit
79880c64ab
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: telnetd.c,v 1.54 2012/01/10 23:39:11 joerg Exp $ */
|
||||
/* $NetBSD: telnetd.c,v 1.55 2014/02/27 18:20:21 joerg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 and 1998 WIDE Project.
|
||||
|
@ -65,7 +65,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: telnetd.c,v 1.54 2012/01/10 23:39:11 joerg Exp $");
|
||||
__RCSID("$NetBSD: telnetd.c,v 1.55 2014/02/27 18:20:21 joerg Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -650,9 +650,6 @@ terminaltypeok(char *s)
|
|||
{
|
||||
char buf[1024];
|
||||
|
||||
if (terminaltype == NULL)
|
||||
return(1);
|
||||
|
||||
/*
|
||||
* tgetent() will return 1 if the type is known, and
|
||||
* 0 if it is not known. If it returns -1, it couldn't
|
||||
|
|
Loading…
Reference in New Issue