summaryrefslogtreecommitdiff
path: root/sample/count.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-04-26 22:25:42 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-04-26 22:25:42 +0200
commit5d5f76cad47d13dc0dd4328c2172ddc1d4b19d7b (patch)
treecd59a8ea003d6768af284fc913353983e2794a58 /sample/count.c
parenteac65ba44805c402f894b700b602c2e891f92a84 (diff)
parent96b0c9871630512ec2c2e84072da0085d68d740f (diff)
Merge branch 'release/debian/6.9.7.1-1'debian/6.9.7.1-1
Diffstat (limited to 'sample/count.c')
-rw-r--r--sample/count.c6
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 {