From 9305d14f39f72c1ad02917df7e15126dc4a4ab1c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 8 Jan 2016 13:26:06 -0800 Subject: Fixed get_containing_block logic in src/commonmark.c. This did not allow for the possibility that a node might have no containing block, causing the commonmark renderer to segfault if passed an inline node with no block parent. --- api_test/main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'api_test') diff --git a/api_test/main.c b/api_test/main.c index 80788e1..9fe96f2 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -675,7 +675,6 @@ static void render_commonmark(test_batch_runner *runner) { "render document without wrapping"); free(commonmark); - /* TODO segfaults */ cmark_node *text = cmark_node_new(CMARK_NODE_TEXT); cmark_node_set_literal(text, "Hi"); commonmark = cmark_render_commonmark(text, CMARK_OPT_DEFAULT, 0); -- cgit v1.2.3