1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 19:20:53 +02:00

<hamer@hamer.org.ua>: 28104: fix completion crash due to NULL pointer.

Actually commit the code.
This commit is contained in:
Peter Stephenson 2010-07-29 11:08:28 +00:00
parent f554a8af16
commit a5a27ad5ec

View file

@ -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)