Browse Source

fix: did not work properly when name != TERM

ceriel 36 years ago
parent
commit
b7131f8b03
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lang/cem/libcc/stdio/termcap.c

+ 1 - 0
lang/cem/libcc/stdio/termcap.c

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