Source-Changes-HG archive

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

[src/trunk]: src/libexec/telnetd Global variable is never a null pointer.



details:   https://anonhg.NetBSD.org/src/rev/628365e97916
branches:  trunk
changeset: 793865:628365e97916
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 18:20:21 2014 +0000

description:
Global variable is never a null pointer.

diffstat:

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

diffs (28 lines):

diff -r b74b0a805020 -r 628365e97916 libexec/telnetd/telnetd.c
--- a/libexec/telnetd/telnetd.c Thu Feb 27 18:14:52 2014 +0000
+++ b/libexec/telnetd/telnetd.c Thu Feb 27 18:20:21 2014 +0000
@@ -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 @@
 #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 @@
 {
     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



Home | Main Index | Thread Index | Old Index