diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:45:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:45:59 +0200 |
commit | ddebf6f9bc11c3a23c5b3b3598fb913c328e2352 (patch) | |
tree | 585328f4ed04955626c3d2cac5db64f1726260ea /sample/count.c | |
parent | 77a04959299aa252579a98655e626d1b8f5f9f34 (diff) | |
parent | f5b2920f12628bb7a0fb8b13097533878a1a9936 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'sample/count.c')
-rw-r--r-- | sample/count.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/count.c b/sample/count.c index 2b67db7..904101c 100644 --- a/sample/count.c +++ b/sample/count.c @@ -59,10 +59,10 @@ test(OnigEncoding enc, OnigMatchParam* mp, char* in_pattern, char* in_str) tag_len = ulen(enc, tag); slot = 0; - r = onig_get_callout_data_by_tag(reg, mp, (UChar* )tag, (UChar* )tag + tag_len, - slot, 0, &val); + r = onig_get_callout_data_by_tag_dont_clear_old(reg, mp, (UChar* )tag, + (UChar* )tag + tag_len, slot, 0, &val); if (r < ONIG_NORMAL) goto err; - else if (r > ONIG_NORMAL) { + else if (r == ONIG_VALUE_IS_NOT_SET) { fprintf(stdout, "COUNT[x]: NO DATA\n"); } else { |