diff options
author | Oliver Kiddle <opk@zsh.org> | 2014-03-03 12:14:01 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2014-03-03 12:14:01 +0100 |
commit | 97115e0e7f33378390aabd3c15d0cd69bf8d191c (patch) | |
tree | 11bd597375727690d6cc43c10dc08be6c8fed887 /Src/Zle | |
parent | 1f290a3e8277347a782a7766948aab47c10120c8 (diff) | |
download | zsh-97115e0e7f33378390aabd3c15d0cd69bf8d191c.tar.gz zsh-97115e0e7f33378390aabd3c15d0cd69bf8d191c.tar.xz zsh-97115e0e7f33378390aabd3c15d0cd69bf8d191c.zip |
32448: fix seg fault if $WIDGET is accessed after recursive-edit is interrupted
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c index a9bbf136a..5845207fa 100644 --- a/Src/Zle/zle_params.c +++ b/Src/Zle/zle_params.c @@ -363,7 +363,7 @@ get_prebuffer(UNUSED(Param pm)) static char * get_widget(UNUSED(Param pm)) { - return bindk->nam; + return bindk ? bindk->nam : ""; } /**/ |