From a5a27ad5ec261188e66f53fb1145a6e5fb291cd4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 29 Jul 2010 11:08:28 +0000 Subject: : 28104: fix completion crash due to NULL pointer. Actually commit the code. --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 529537d37..ee44c46ef 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2932,7 +2932,7 @@ add_match_data(int alt, char *str, char *orig, Cline line, comp_setunset(0, 0, CP_EXACTSTR, 0); } ai->exactm = cm; - } else if (useexact && !matcheq(cm, ai->exactm)) { + } else if (useexact && (!ai->exactm || !matcheq(cm, ai->exactm))) { ai->exact = 2; ai->exactm = NULL; if (incompfunc) -- cgit 1.4.1