summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-15 14:18:51 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-15 14:18:51 -0800
commit12e9e3c4d06fa33f2d72ea4eb7ee2978f59c1313 (patch)
treef1dd95bc9c22ed3d6d6d259d925f328a5761b38d /src
parent2a6cbd357aa142bb40b136419cba22b6b0fa477a (diff)
Fixed segfault with --normalize (closes #7).
This bug was introduced after the modification in 009c3847f004fda437dd5376a9452973b1cb913e.
Diffstat (limited to 'src')
-rw-r--r--src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iterator.c b/src/iterator.c
index eb7b49c..c6faf99 100644
--- 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);