From ce4b717d6a05d707ea19eee68a74dd3621de3513 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 19 Nov 2014 18:06:03 +0100 Subject: Fix {get|set}_string_content --- src/node.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/node.c') diff --git a/src/node.c b/src/node.c index 8b8b988..190deb9 100644 --- a/src/node.c +++ b/src/node.c @@ -107,6 +107,7 @@ cmark_node_get_string_content(cmark_node *node) { case NODE_INLINE_HTML: case NODE_INLINE_CODE: return cmark_chunk_to_cstr(&node->as.literal); + default: break; } @@ -121,12 +122,14 @@ cmark_node_set_string_content(cmark_node *node, const char *content) { case NODE_FENCED_CODE: case NODE_HTML: cmark_strbuf_sets(&node->string_content, content); + return 1; case NODE_STRING: case NODE_INLINE_HTML: case NODE_INLINE_CODE: cmark_chunk_set_cstr(&node->as.literal, content); return 1; + default: break; } -- cgit v1.2.3