diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 14:18:51 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 14:18:51 -0800 |
commit | 12e9e3c4d06fa33f2d72ea4eb7ee2978f59c1313 (patch) | |
tree | f1dd95bc9c22ed3d6d6d259d925f328a5761b38d /src | |
parent | 2a6cbd357aa142bb40b136419cba22b6b0fa477a (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.c | 2 |
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); |