diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2025-03-16 12:06:04 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2025-03-16 12:06:04 +0100 | 
| commit | 23c9de60f30041419f3925221d4faff4e7a54717 (patch) | |
| tree | 357c045bdafe11674151335bf4f7d65ae179478f /test/test_options.c | |
| parent | 35e13e4c9637f5bf7bef6039c8c813207780a174 (diff) | |
New upstream version 6.9.10upstream/6.9.10upstream
Diffstat (limited to 'test/test_options.c')
| -rw-r--r-- | test/test_options.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/test/test_options.c b/test/test_options.c index ce92ee1..9aa2538 100644 --- a/test/test_options.c +++ b/test/test_options.c @@ -1,6 +1,6 @@  /*   * test_options.c - * Copyright (c) 2020-2021  K.Kosako + * Copyright (c) 2020-2024  K.Kosako   */  #ifdef ONIG_ESCAPE_UCHAR_COLLISION  #undef ONIG_ESCAPE_UCHAR_COLLISION @@ -64,7 +64,7 @@ static void xx(OnigOptionType options, char* pattern, char* str,    r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),                    (UChar* )str, (UChar* )(str + SLEN(str)),                    region, options); -  if (r < ONIG_MISMATCH) { +  if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {      char s[ONIG_MAX_ERROR_MESSAGE_LEN];      if (error_no == 0) { | 
