From 502b1f416746ed8700498229bbfceb180e400fbc Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Tue, 26 Feb 2019 22:45:24 +0900 Subject: [PATCH] fix #130: Build error on UWP with VS2017 --- src/regparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/regparse.c b/src/regparse.c index 9b03ebd..d5732ae 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -6600,7 +6600,7 @@ parse_callout_of_contents(Node** np, int cterm, UChar** src, UChar* end, ScanEnv PFETCH_S(c); if (c == '[') { if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; - tag_start = p; + tag_end = tag_start = p; while (! PEND) { if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; tag_end = p; @@ -6890,7 +6890,7 @@ parse_callout_of_name(Node** np, int cterm, UChar** src, UChar* end, ScanEnv* en if (c == '[') { if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; - tag_start = p; + tag_end = tag_start = p; while (! PEND) { if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; tag_end = p; @@ -7331,9 +7331,9 @@ parse_bag(Node** np, OnigToken* tok, int term, UChar** src, UChar* end, int then_is_empty; Node *Then, *Else; + Then = 0; if (PPEEK_IS('|')) { PFETCH(c); - Then = 0; then_is_empty = 1; } else -- 2.40.0