mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 07:10:58 +02:00
<hamer@hamer.org.ua>: 28104: fix completion crash due to NULL pointer.
Actually commit the code.
This commit is contained in:
parent
f554a8af16
commit
a5a27ad5ec
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue