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:
parent
6114ee2fe3
commit
92da657e85
3 changed files with 615 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue