]> granicus.if.org Git - onig/commitdiff
revert a null check (in PR #125)
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 9 Oct 2018 06:03:00 +0000 (15:03 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 9 Oct 2018 06:03:00 +0000 (15:03 +0900)
src/regexec.c

index 757f6a28d00c7337b3aac99d4d3c6c6aad7b1981..d34f0e71c5b6cacbb54e1b291c72723c15c7f209 100644 (file)
@@ -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