about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-22 09:26:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-22 09:26:01 +0000
commit31178db2ccaf8865b7135caa772f5a186e926a8d (patch)
tree1936254181f52e8ba6878948009acd1fda289e28 /Src
parent51897d0502768b32de1da5bd9dceff00ad9a8e7f (diff)
downloadzsh-31178db2ccaf8865b7135caa772f5a186e926a8d.tar.gz
zsh-31178db2ccaf8865b7135caa772f5a186e926a8d.tar.xz
zsh-31178db2ccaf8865b7135caa772f5a186e926a8d.zip
Phil Pennock: 23450: $widgets crashed shell on undefined widget
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zleparameter.c2
1 files changed, 2 insertions, 0 deletions
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) {