Commit 578dea5b81474bb16ac66cf79cf876c5e8be77bf

Martin Mitas 2016-12-04T18:41:41

md_resolve_links: Remove possible invalid initialization.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 81c438e..0f94d6e 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -2735,7 +2735,7 @@ md_resolve_links(MD_CTX* ctx, const MD_LINE* lines, int n_lines)
         MD_MARK* closer = &ctx->marks[closer_index];
         int next_index = opener->prev;
         MD_MARK* next_opener = &ctx->marks[next_index];
-        MD_MARK* next_closer = &ctx->marks[next_opener->next];
+        MD_MARK* next_closer;
         MD_LINK_ATTR attr;
         int is_link = FALSE;