diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-29 18:37:48 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-29 21:49:14 +0100 |
commit | decf525cf60f8db8ffe1ee525a328b488d16f35b (patch) | |
tree | 554bc133ab6687a50805eff6d7f3b963e3a9f202 /src/node.c | |
parent | d8226ea031f61572f397af0735ec32c6ab0a231a (diff) |
Fix prev pointer of emph->first_child
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -607,6 +607,11 @@ cmark_node_check(cmark_node *node, FILE *out) cur = node; while (true) { if (cur->first_child) { + if (cur->first_child->prev != NULL) { + S_print_error(out, cur->first_child, "prev"); + cur->first_child->prev = NULL; + ++errors; + } if (cur->first_child->parent != cur) { S_print_error(out, cur->first_child, "parent"); cur->first_child->parent = cur; |