about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zleparameter.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bb2617400..5d521e898 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-22  Peter Stephenson  <pws@csr.com>
+
+	* Phil Pennock: 23450: Src/Zle/zleparameter.yo: undefined
+	widget caused crash in in $widgets special parameter.
+
 2007-05-21  Peter Stephenson  <pws@csr.com>
 
 	* 23447: INSTALL, README, Doc/Zsh/contrib.yo,
diff --git a/Src/Zle/zleparameter.c b/Src/Zle/zleparameter.c
index e2e8186f2..3c7f1474f 100644
--- a/Src/Zle/zleparameter.c
+++ b/Src/Zle/zleparameter.c
@@ -75,6 +75,8 @@ createspecialhash(char *name, GetNodeFunc get, ScanTabFunc scan)
 static char *
 widgetstr(Widget w)
 {
+    if (!w)
+	return dupstring("undefined");
     if (w->flags & WIDGET_INT)
 	return dupstring("builtin");
     if (w->flags & WIDGET_NCOMP) {