cmark

My personal build of CMark ✏️

Commit
3f251cdca271ddb79d06fb8fc101499d0e9a3021
Parent
bc61ae39e0370d642d75f136c9adbd07cce1818f
Author
John MacFarlane <fiddlosopher@gmail.com>
Date

Removed unnecessary assignment.

Clang static analyzer pointed out that the value assigned to 'pos' is never read.

Diffstat

1 file changed, 0 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/blocks.c 1 0 1
diff --git a/src/blocks.c b/src/blocks.c
@@ -182,7 +182,6 @@ static void finalize(cmark_doc_parser *parser, cmark_node* b, int line_number)
 
 	switch (b->type) {
 		case NODE_PARAGRAPH:
-			pos = 0;
 			while (strbuf_at(&b->string_content, 0) == '[' &&
 					(pos = cmark_parse_reference_inline(&b->string_content, parser->refmap))) {