diff options
Diffstat (limited to 'Src/Modules/terminfo.c')
-rw-r--r-- | Src/Modules/terminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |