fix: did not work properly when name != TERM
authorceriel <none@none>
Tue, 30 Aug 1988 12:34:40 +0000 (12:34 +0000)
committerceriel <none@none>
Tue, 30 Aug 1988 12:34:40 +0000 (12:34 +0000)
lang/cem/libcc/stdio/termcap.c

index 2ce9237..3b5ae5d 100644 (file)
@@ -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)