about summary refs log tree commit diff
path: root/Src/Zle/compresult.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-28 13:08:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-28 13:08:47 +0000
commitbd7632079045b1b6d0dee498c40833b409cf757e (patch)
tree37f449de06916871bb574dc9795aec6e4a510dfe /Src/Zle/compresult.c
parent934c891c61daac95ee6d8ebd92628e003cc33839 (diff)
downloadzsh-bd7632079045b1b6d0dee498c40833b409cf757e.tar.gz
zsh-bd7632079045b1b6d0dee498c40833b409cf757e.tar.xz
zsh-bd7632079045b1b6d0dee498c40833b409cf757e.zip
23478: crash in reverse-menu-complete if no completion
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r--Src/Zle/compresult.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index ebfb2cc47..62a35122f 100644
--- a/Src/Zle/compresult.c
+++ b/Src/Zle/compresult.c
@@ -1227,6 +1227,9 @@ reverse_menu(UNUSED(Hookdef dummy), UNUSED(void *dummy2))
 {
     int was_meta;
 
+    if (minfo.cur == NULL)
+	return 1;
+
     do {
 	if (minfo.cur == (minfo.group)->matches) {
 	    do {