summaryrefslogtreecommitdiffstats
path: root/src/xregex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xregex.c')
-rw-r--r--src/xregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xregex.c b/src/xregex.c
index b9c04bf..87b692e 100644
--- a/src/xregex.c
+++ b/src/xregex.c
@@ -107,7 +107,7 @@ static void bfs_onig_once(void) {
/** Initialize Oniguruma. */
static int bfs_onig_initialize(OnigEncoding *enc) {
static pthread_once_t once = PTHREAD_ONCE_INIT;
- call_once(&once, bfs_onig_once);
+ invoke_once(&once, bfs_onig_once);
*enc = bfs_onig_enc;
return bfs_onig_status;