Commit c3a18d5587f1393588a14b482c19706aa4f85b32

Martin Mitas 2020-11-13T09:27:10

md_collect_marks: continue -> break Does not cause any change in behavior: we just avoid needless loop iterations now.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/md4c.c b/src/md4c.c
index 4186d30..f0af787 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -3227,7 +3227,7 @@ md_collect_marks(MD_CTX* ctx, const MD_LINE* lines, int n_lines, int table_mode)
                         /* Push a dummy as a reserve for a closer. */
                         PUSH_MARK('D', off, off, 0);
                         off += 1 + suffix_size;
-                        continue;
+                        break;
                     }
                 }