X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fregex_internal.c;h=598fc7486ea40f8705af7c4d0353c995079400d2;hb=refs%2Ftags%2Fupstream%2F1.21;hp=f1a6edd7adb60a3645c1446554139cdc500e42b7;hpb=138fc7e67e3d9845cd7d81aad0e9c7724784f9b9;p=debian%2Ftar diff --git a/lib/regex_internal.c b/lib/regex_internal.c index f1a6edd7..598fc748 100644 --- a/lib/regex_internal.c +++ b/lib/regex_internal.c @@ -1691,11 +1691,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; @@ -1708,8 +1706,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) {