From: K.Kosako Date: Tue, 19 Feb 2019 02:26:31 +0000 (+0900) Subject: fix invalid condition for setting of head_exact value X-Git-Tag: v6.9.2_rc1~65^2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87a411c8f2442abe07eed011eaf8c80c54c044c;p=onig fix invalid condition for setting of head_exact value --- diff --git a/src/regcomp.c b/src/regcomp.c index 99e13d3..f44ac5c 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -4451,7 +4451,7 @@ setup_quant(Node* node, regex_t* reg, int state, ScanEnv* env) } #ifdef USE_OP_PUSH_OR_JUMP_EXACT - if (qn->greedy && (qn->body_empty_info != QUANT_BODY_IS_NOT_EMPTY)) { + if (qn->greedy && (qn->body_empty_info == QUANT_BODY_IS_NOT_EMPTY)) { if (NODE_TYPE(body) == NODE_QUANT) { QuantNode* tqn = QUANT_(body); if (IS_NOT_NULL(tqn->head_exact)) {