From b2d709b22e2c291bfdb680f2b10bcbd4e5bd5514 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 2 Feb 2007 23:47:47 +0000 Subject: 23144: Felix Eckhofer : NULL pointer in complist.c --- Src/Zle/complist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/Zle') 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; -- cgit 1.4.1