about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/terminfo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0195e0739..65ee0efcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-05  Clint Adams  <schizo@debian.org>
+
+	* 13242: Src/Modules/terminfo.c: better error-checking
+	for non-existent capabilities referenced by $terminfo.
+
 2000-12-05  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Config/version.mk: 3.1.9-dev-8.
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index 52b0b27f8..512f4b474 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -165,7 +165,7 @@ getterminfo(HashTable ht, char *name)
 	pm->u.str = num ? dupstring("yes") : dupstring("no");
 	pm->flags |= PM_SCALAR;
     }
-    else if ((tistr = (char *)tigetstr(name)) != NULL)
+    else if ((tistr = (char *)tigetstr(name)) != NULL && tistr != (char *)-1)
     {
 	pm->u.str = dupstring(tistr);
 	pm->flags |= PM_SCALAR;