From: K.Kosako Date: Tue, 9 Oct 2018 06:03:00 +0000 (+0900) Subject: revert a null check (in PR #125) X-Git-Tag: v6.9.1~18^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e6714dabb583793936eefefdbeda0cee5f4b397;p=onig revert a null check (in PR #125) --- diff --git a/src/regexec.c b/src/regexec.c index 757f6a2..d34f0e7 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -4724,7 +4724,7 @@ onig_search_with_param(regex_t* reg, const UChar* str, const UChar* end, UChar* pre_end = ONIGENC_STEP_BACK(reg->enc, str, end, 1); max_semi_end = (UChar* )end; - if (IS_NOT_NULL(pre_end) && ONIGENC_IS_MBC_NEWLINE(reg->enc, pre_end, end)) { + if (ONIGENC_IS_MBC_NEWLINE(reg->enc, pre_end, end)) { min_semi_end = pre_end; #ifdef USE_CRNL_AS_LINE_TERMINATOR