diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-12-12 18:28:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-12-12 18:28:58 +0000 |
commit | 77751669d757d1b78dfa677c1c429bd94aa2e59d (patch) | |
tree | e60ad28baa82f2dcf9c29bcda17eaeebbe15ca34 /posix/regcomp.c | |
parent | f63e5063410e030f856956f12b3472499c3129e2 (diff) | |
download | glibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.tar.gz glibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.tar.xz glibc-77751669d757d1b78dfa677c1c429bd94aa2e59d.zip |
* posix/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
that would inhibit utf8-optimization of a regexp containing line- or buffer-anchors, e.g., `^', `$'.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r-- | posix/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c index 4cf168821c..1de46d72ed 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -1030,7 +1030,7 @@ optimize_utf8 (re_dfa_t *dfa) mb_chars = 1; break; case ANCHOR: - switch (dfa->nodes[node].opr.idx) + switch (dfa->nodes[node].opr.ctx_index) { case LINE_FIRST: case LINE_LAST: |