diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:40:21 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-04-26 17:40:21 +0200 |
commit | d3a83c35311ec631a46b59b66c38ef8d3a2a629a (patch) | |
tree | 28fc4dd524fa29f712020b61e565ab47b1fefd8e /sample/count.c | |
parent | 77a04959299aa252579a98655e626d1b8f5f9f34 (diff) | |
parent | 98f7065a3f7b386564840bb5b24b94f9335b2e97 (diff) |
Update upstream source from tag 'upstream/6.9.7.1'
Update to upstream version '6.9.7.1'
with Debian dir c2c92e088b7e91033d7f5bee51ac7827148eaf4b
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 { |