Commit 5178c585af2ae630b8a7ec0a3d66aca1015d7c28

Martin Mitas 2024-01-25T23:53:58

Fix uninitialized variable. This was regression introduced in the commit aeddaf587f5e3faceb2d88a45ef7987bdebfe837.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/md4c.c b/src/md4c.c
index 5075e0f..7c39710 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -2850,9 +2850,11 @@ md_is_code_span(MD_CTX* ctx, const MD_LINE* lines, int n_lines, OFF beg,
     opener->ch = _T('`');
     opener->beg = opener_beg;
     opener->end = opener_end;
+    opener->flags = MD_MARK_POTENTIAL_OPENER;
     closer->ch = _T('`');
     closer->beg = closer_beg;
     closer->end = closer_end;
+    closer->flags = MD_MARK_POTENTIAL_CLOSER;
     return TRUE;
 }