From bd588f625a1d3c9cd8bf255d1109a36013d2f094 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 5 Dec 2000 11:00:08 +0000 Subject: terminfo tweaks --- Src/Modules/terminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Modules/terminfo.c') diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 4fe1b3cec..52b0b27f8 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -67,7 +67,7 @@ bin_echoti(char *name, char **argv, char *ops, int func) /* get a string-type capability */ t = (char *)tigetstr(s); - if (!t || !*t) { + if (!t || t == (char *)-1 || !*t) { /* capability doesn't exist, or (if boolean) is off */ zwarnnam(name, "no such terminfo capability: %s", s, 0); return 1; -- cgit 1.4.1