From decf525cf60f8db8ffe1ee525a328b488d16f35b Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 29 Nov 2014 18:37:48 +0100 Subject: Fix prev pointer of emph->first_child --- src/node.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index 4054881..fd92fdc 100644 --- a/src/node.c +++ b/src/node.c @@ -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; -- cgit v1.2.3