fix: did not work properly when name != TERM

This commit is contained in:
ceriel 1988-08-30 12:34:40 +00:00
parent bef927cf4a
commit b7131f8b03

View File

@ -55,6 +55,7 @@ char *name;
(void) strcpy(bp, file); (void) strcpy(bp, file);
return(1); return(1);
} }
else file = "/etc/termcap";
} else } else
file = "/etc/termcap"; file = "/etc/termcap";
if ((fp = fopen(file, "r")) == (FILE *) NULL) if ((fp = fopen(file, "r")) == (FILE *) NULL)