diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-08 13:26:06 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-08 13:26:06 -0800 |
commit | 9305d14f39f72c1ad02917df7e15126dc4a4ab1c (patch) | |
tree | ef359e720e3233019277f9a9b5c57b0c7bb3af20 /api_test | |
parent | 56501dc4d3f8d33c13ca833d2386a445ecde7435 (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')
-rw-r--r-- | api_test/main.c | 1 |
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); |