cmark

My personal build of CMark ✏️

Commit
572557dd3ca0cedecba3833111bb04bb5668db43
Parent
990aabe29415cdbc0d7fd22aa82c5e6bf31b4675
Author
Nick Wellnhofer <wellnhofer@aevum.de>
Date

Remove unused variable

Diffstat

1 file changed, 1 insertion, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 3 1 2
diff --git a/src/commonmark.c b/src/commonmark.c
@@ -182,7 +182,7 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
   bool entering = (ev_type == CMARK_EVENT_ENTER);
   const char *info, *code, *title;
   char fencechar[2] = {'\0', '\0'};
-  size_t info_len, code_len;
+  size_t code_len;
   char listmarker[LISTMARKER_SIZE];
   const char *emph_delim;
   bool first_in_list_item;
@@ -289,7 +289,6 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
       BLANKLINE();
     }
     info = cmark_node_get_fence_info(node);
-    info_len = strlen(info);
     fencechar[0] = strchr(info, '`') == NULL ? '`' : '~';
     code = cmark_node_get_literal(node);
     code_len = strlen(code);