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

zsh-workers/7714

This commit is contained in:
Tanaka Akira 1999-09-08 09:15:16 +00:00
parent 1d24d00bbd
commit 1bd39e36ab

View file

@ -2739,7 +2739,7 @@ comp_match(char *pfx, char *sfx, char *w, Patprog cp,
mpl - rpl, 0);
pli = matchparts;
}
r = dupstring(matchbuf);
r = dupstring(matchbuf ? matchbuf : "");
*clp = pli;
@ -7133,7 +7133,8 @@ permmatches(void)
((g->flags & CGF_NOSORT) ? 0 : 2),
&nn, &nl);
g->mcount = nn;
g->lcount = nn - nl;
if ((g->lcount = nn - nl) < 0)
g->lcount = 0;
if (g->ylist) {
g->lcount = arrlen(g->ylist);
smatches = 2;