From: K.Kosako Date: Tue, 26 Feb 2019 13:45:24 +0000 (+0900) Subject: fix #130: Build error on UWP with VS2017 X-Git-Tag: v6.9.2_rc1~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=502b1f416746ed8700498229bbfceb180e400fbc;p=onig fix #130: Build error on UWP with VS2017 --- 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