summaryrefslogtreecommitdiff
path: root/sample/callback_each_match.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-11-20 20:27:13 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-11-20 20:27:13 +0100
commitacb44b8740ce860a4905a47f84520f132c6f76ac (patch)
tree4cc2df0d5849dc8ec395282157528a35e2b1829c /sample/callback_each_match.c
parentc9281d179754ffffe24ba9a718d2c4f2e1b4bd5e (diff)
parente81090b75cd330ee5201f56e40d9424a1fc31a6a (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'sample/callback_each_match.c')
-rw-r--r--sample/callback_each_match.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sample/callback_each_match.c b/sample/callback_each_match.c
index 10ed56d..15c39dd 100644
--- a/sample/callback_each_match.c
+++ b/sample/callback_each_match.c
@@ -93,7 +93,7 @@ static int
match(UChar* pattern, UChar* str, UChar* at, OnigOptionType options, OnigOptionType runtime_options)
{
int r;
- unsigned char *start, *range, *end;
+ unsigned char *end;
regex_t* reg;
OnigErrorInfo einfo;
OnigRegion *region;
@@ -112,8 +112,6 @@ match(UChar* pattern, UChar* str, UChar* at, OnigOptionType options, OnigOptionT
region = onig_region_new();
end = str + strlen((char* )str);
- start = str;
- range = end;
mp = onig_new_match_param();
if (mp == 0) return -2;