summaryrefslogtreecommitdiff
path: root/win32/glob.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2015-05-13 23:47:54 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2015-05-13 23:47:54 +0200
commite42aae1e9bf5e15d8114c8ae4b5e99cc6e555d9b (patch)
tree23024c61f85764b5a298473d3be9d03c415effed /win32/glob.c
parent43315f32e7f980a774b85ec6556fcfbb8c3507db (diff)
downloadphp-git-e42aae1e9bf5e15d8114c8ae4b5e99cc6e555d9b.tar.gz
fix #69628: complex GLOB_BRACE fails on Windows
Diffstat (limited to 'win32/glob.c')
-rw-r--r--win32/glob.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/glob.c b/win32/glob.c
index 43884509ce..1541fcf966 100644
--- a/win32/glob.c
+++ b/win32/glob.c
@@ -293,17 +293,19 @@ globexp2(ptr, pattern, pglob, rv)
}
for (i = 0, pl = pm = ptr; pm <= pe; pm++) {
+ const Char *pb;
+
switch (*pm) {
case LBRACKET:
/* Ignore everything between [] */
- for (pl = pm++; *pm != RBRACKET && *pm != EOS; pm++)
+ for (pb = pm++; *pm != RBRACKET && *pm != EOS; pm++)
;
if (*pm == EOS) {
/*
* We could not find a matching RBRACKET.
* Ignore and just look for RBRACE
*/
- pm = pl;
+ pm = pb;
}
break;