Module Name: src
Committed By: joerg
Date: Thu Feb 27 18:20:21 UTC 2014
Modified Files:
src/libexec/telnetd: telnetd.c
Log Message:
Global variable is never a null pointer.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/libexec/telnetd/telnetd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/telnetd/telnetd.c
diff -u src/libexec/telnetd/telnetd.c:1.54 src/libexec/telnetd/telnetd.c:1.55
--- src/libexec/telnetd/telnetd.c:1.54 Tue Jan 10 23:39:11 2012
+++ src/libexec/telnetd/telnetd.c Thu Feb 27 18:20:21 2014
@@ -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, 19
#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