summaryrefslogtreecommitdiff
path: root/sample/regset.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:58 +0200
commit73c6133c32cddae59813cbadf655cb50a3a7356a (patch)
tree0935fb6da7f1d9728b42ddf08395a0e977e1c228 /sample/regset.c
parent043fff5b6f2461aeccb1c62cb771826cfe301832 (diff)
parent6b986090d954dbac91bbb3c43ce7c3328c91a780 (diff)
Update upstream source from tag 'upstream/6.9.5'
Update to upstream version '6.9.5' with Debian dir 1312d9badb7f1c47d032cf09765074e8fd80c991
Diffstat (limited to 'sample/regset.c')
-rw-r--r--sample/regset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/regset.c b/sample/regset.c
index ca3a10c..6be511a 100644
--- a/sample/regset.c
+++ b/sample/regset.c
@@ -16,6 +16,7 @@ extern int main(int argc, char* argv[])
regex_t* reg;
OnigErrorInfo einfo;
char ebuf[ONIG_MAX_ERROR_MESSAGE_LEN];
+ OnigEncoding use_encs[1];
static UChar* str = (UChar* )"aaaaaaaaaaaaaaaaaaaaaaca";
@@ -25,7 +26,7 @@ extern int main(int argc, char* argv[])
"a(.....)c"
};
- OnigEncoding use_encs[] = { ONIG_ENCODING_UTF8 };
+ use_encs[0] = ONIG_ENCODING_UTF8;
onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0]));
r = onig_regset_new(&set, 0, NULL);