1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-24 14:01:03 +01:00

21195 fix for 21170

This commit is contained in:
Bart Schaefer 2005-04-26 16:23:57 +00:00
parent 6114ee2fe3
commit 92da657e85
3 changed files with 615 additions and 1 deletions

View file

@ -1552,8 +1552,10 @@ pattryrefs(Patprog prog, char *string, int stringlen, int unmetalen,
*nump = 0;
}
/* inherited from domatch, but why, exactly? */
if (*string == Nularg)
if (*string == Nularg) {
string++;
unmetalen--;
}
if (stringlen < 0)
stringlen = strlen(string);