From 7f1945b04fe5066159a347acce60455f2e14f877 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Tue, 6 Mar 2018 14:02:02 +0900 Subject: [PATCH] fix: invalid loop counter in setup_ext_callout_list_values() --- src/regparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regparse.c b/src/regparse.c index 14978fd..24dc516 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -1707,7 +1707,7 @@ setup_ext_callout_list_values(regex_t* reg) (st_data_t )ext); } - for (i = 0; i < ext->callout_num; i++) { + for (i = 1; i <= ext->callout_num; i++) { CalloutListEntry* e = ext->callout_list + i; if (e->of == ONIG_CALLOUT_OF_NAME) { for (j = 0; j < e->u.arg.num; j++) { -- 2.40.0