From: K.Kosako Date: Mon, 15 Oct 2012 04:39:31 +0000 (+0900) Subject: fix print_tree ENCLOSE_OPTION bug X-Git-Tag: v5.9.6~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c5a53fc2f442e43b40824b78bedd289477f2846;p=onig fix print_tree ENCLOSE_OPTION bug --- diff --git a/HISTORY b/HISTORY index 06f38c2..c0d0966 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,7 @@ History +2012/10/15: fix print_tree ENCLOSE_OPTION bug. (thanks Suraj N. Kurapati) + 2010/01/09: Version 5.9.2 2010/01/05: [bug] fix utf16be_code_to_mbc() and utf16le_code_to_mbc(). diff --git a/regcomp.c b/regcomp.c index f9d9956..858bdb4 100644 --- a/regcomp.c +++ b/regcomp.c @@ -6216,8 +6216,7 @@ print_indent_tree(FILE* f, Node* node, int indent) fprintf(f, " ", (int )node); switch (NENCLOSE(node)->type) { case ENCLOSE_OPTION: - fprintf(f, "option:%d\n", NENCLOSE(node)->option); - print_indent_tree(f, NENCLOSE(node)->target, indent + add); + fprintf(f, "option:%d", NENCLOSE(node)->option); break; case ENCLOSE_MEMORY: fprintf(f, "memory:%d", NENCLOSE(node)->regnum);