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, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 054563f5f..b4c8944d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-22  Clint Adams  <clint@zsh.org>
+
+	* 17571: Src/Modules/terminfo.c: backport of terminfo segfault
+        fix from 4.1.
+
 2002-08-19  Felix Rosencrantz  <f_rosencrantz@yahoo.com>
 
 	* 16863, 17562: Completion/Unix/Command/.distfiles:
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c
index bcc7dd54d..ca54a333e 100644
--- a/Src/Modules/terminfo.c
+++ b/Src/Modules/terminfo.c
@@ -198,6 +198,8 @@ getterminfo(HashTable ht, char *name)
     {
 	pm->u.str = dupstring(tistr);
 	pm->flags |= PM_SCALAR;
+	pm->sets.cfn = NULL;
+	pm->gets.cfn = strgetfn;
     }
     else
     {