cmark

My personal build of CMark ✏️

Commit
12e9e3c4d06fa33f2d72ea4eb7ee2978f59c1313
Parent
2a6cbd357aa142bb40b136419cba22b6b0fa477a
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed segfault with --normalize (closes #7).

This bug was introduced after the modification in 009c3847f004fda437dd5376a9452973b1cb913e.

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/iterator.c 2 1 1
diff --git a/src/iterator.c b/src/iterator.c
@@ -132,7 +132,7 @@ void cmark_consolidate_text_nodes(cmark_node *root)
 			cmark_strbuf_puts(&buf, cmark_node_get_literal(cur));
 			tmp = cur->next;
 			while (tmp && tmp->type == CMARK_NODE_TEXT) {
-				cmark_iter_get_node(iter); // advance pointer
+				cmark_iter_next(iter); // advance pointer
 				cmark_strbuf_puts(&buf, cmark_node_get_literal(tmp));
 				next = tmp->next;
 				cmark_node_free(tmp);