diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zleparameter.c | 2 |
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) { |