diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-02 23:47:47 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-02 23:47:47 +0000 |
commit | b2d709b22e2c291bfdb680f2b10bcbd4e5bd5514 (patch) | |
tree | a291b03327604834619a0e618ea93e345f905340 /Src | |
parent | 54d692c4b557eecbb15d0ba4814fa99902ab3008 (diff) | |
download | zsh-b2d709b22e2c291bfdb680f2b10bcbd4e5bd5514.tar.gz zsh-b2d709b22e2c291bfdb680f2b10bcbd4e5bd5514.tar.xz zsh-b2d709b22e2c291bfdb680f2b10bcbd4e5bd5514.zip |
23144: Felix Eckhofer <felix@tribut.de>: NULL pointer in complist.c
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/complist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index 90ea31f66..e723da0f3 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -2079,6 +2079,9 @@ msearchpop(int *backp) { Menusearch s = msearchstack; + if (!s) + return NULL; + if (s->prev) msearchstack = s->prev; |