diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-22 09:26:01 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-22 09:26:01 +0000 |
commit | 31178db2ccaf8865b7135caa772f5a186e926a8d (patch) | |
tree | 1936254181f52e8ba6878948009acd1fda289e28 | |
parent | 51897d0502768b32de1da5bd9dceff00ad9a8e7f (diff) | |
download | zsh-31178db2ccaf8865b7135caa772f5a186e926a8d.tar.gz zsh-31178db2ccaf8865b7135caa772f5a186e926a8d.tar.xz zsh-31178db2ccaf8865b7135caa772f5a186e926a8d.zip |
Phil Pennock: 23450: $widgets crashed shell on undefined widget
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zleparameter.c | 2 |
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) { |