summaryrefslogtreecommitdiff
path: root/posix/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regex.c')
-rw-r--r--posix/regex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/regex.c b/posix/regex.c
index bff88c5412..8cce459a0b 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -2725,7 +2725,10 @@ regex_compile (pattern, size, syntax, bufp)
if (c1 == 1)
range_start = extra[idx];
while (c1-- > 0)
- SET_LIST_BIT (extra[idx++]);
+ {
+ SET_LIST_BIT (extra[idx]);
+ ++idx;
+ }
}
#endif
had_char_class = false;