X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=posix%2Fregex_internal.c;h=01a432e80130803eae90f9c585cb89e93b6a0e32;hb=0caca71ac95d12c6f45bbbe39d9adb7ac7074146;hp=66154e0ceac3fa09b72d806787f6610562e03cf0;hpb=b194db79852e6bbd5d5ad72690679c8be06eef15;p=platform%2Fupstream%2Fglibc.git diff --git a/posix/regex_internal.c b/posix/regex_internal.c index 66154e0..01a432e 100644 --- a/posix/regex_internal.c +++ b/posix/regex_internal.c @@ -1665,11 +1665,9 @@ create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, for (i = 0 ; i < nodes->nelem ; i++) { - unsigned int constraint = 0; re_token_t *node = dfa->nodes + nodes->elems[i]; re_token_type_t type = node->type; - if (node->constraint) - constraint = node->constraint; + unsigned int constraint = node->constraint; if (type == CHARACTER && !constraint) continue; @@ -1682,8 +1680,6 @@ create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes, newstate->halt = 1; else if (type == OP_BACK_REF) newstate->has_backref = 1; - else if (type == ANCHOR) - constraint = node->opr.ctx_type; if (constraint) {