From 77751669d757d1b78dfa677c1c429bd94aa2e59d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Dec 2007 18:28:58 +0000 Subject: * 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., `^', `$'. --- posix/regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix/regcomp.c') diff --git a/posix/regcomp.c b/posix/regcomp.c index 4cf1688..1de46d7 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: -- cgit v1.1