'c' cannot be -1.

Submitted by:	stefanf
This commit is contained in:
Pawel Jakub Dawidek 2005-02-03 15:23:27 +00:00
parent f627315f1e
commit 6513f57682
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141207

View File

@ -43,7 +43,6 @@ gets(char *cp, size_t size, int visible)
for (;;) {
c = cngetc() & 0177;
switch (c) {
case -1:
case '\n':
case '\r':
*lp = '\0';