summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-01-08 13:26:06 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-01-08 13:26:06 -0800
commit9305d14f39f72c1ad02917df7e15126dc4a4ab1c (patch)
treeef359e720e3233019277f9a9b5c57b0c7bb3af20 /api_test/main.c
parent56501dc4d3f8d33c13ca833d2386a445ecde7435 (diff)
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.
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c1
1 files changed, 0 insertions, 1 deletions
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);