summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/blocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 0222c0f..338d4e9 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -145,7 +145,7 @@ static void remove_trailing_blank_lines(cmark_strbuf *ln)
}
- for(i = 0; i < ln->size; ++i) {
+ for(; i < ln->size; ++i) {
c = ln->ptr[i];
if (c != '\r' && c != '\n')