]> granicus.if.org Git - onig/commitdiff
fix print_tree ENCLOSE_OPTION bug
authorK.Kosako <sndgk393@ybb.ne.jp>
Mon, 15 Oct 2012 04:39:31 +0000 (13:39 +0900)
committerK.Kosako <sndgk393@ybb.ne.jp>
Mon, 15 Oct 2012 04:39:31 +0000 (13:39 +0900)
HISTORY
regcomp.c

diff --git a/HISTORY b/HISTORY
index 06f38c246a99909d95a1a51a531db2b605f0b4e9..c0d0966b053443c968678683137ea59c7447da41 100644 (file)
--- 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().
index f9d99563b3897601669c6608fca22541a14cd3be..858bdb47a24565ce48c5a381cd9993883a4a9157 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -6216,8 +6216,7 @@ print_indent_tree(FILE* f, Node* node, int indent)
     fprintf(f, "<enclose:%x> ", (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);