From: ceriel Date: Tue, 30 Aug 1988 12:34:40 +0000 (+0000) Subject: fix: did not work properly when name != TERM X-Git-Tag: release-5-5~2882 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ddc46385f33c8e363925bee2c92bf440e5167f72;p=ack.git fix: did not work properly when name != TERM --- diff --git a/lang/cem/libcc/stdio/termcap.c b/lang/cem/libcc/stdio/termcap.c index 2ce923715..3b5ae5db2 100644 --- a/lang/cem/libcc/stdio/termcap.c +++ b/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)