summaryrefslogtreecommitdiff
path: root/src/blocks.c
diff options
context:
space:
mode:
authorBen Trask <bentrask@comcast.net>2015-03-20 21:12:10 -0400
committerBen Trask <bentrask@comcast.net>2015-04-07 09:26:07 -0400
commitfbb0836feb25f3f5f3e3373c7c20eab62f30e036 (patch)
tree44819041c52dfebdffb8a3500ce664250d0ca2a3 /src/blocks.c
parent209ac5d2be3ddc9b0ff814c25903cd33f7dc94b4 (diff)
Fix regression in remove_trailing_blank_lines().
Diffstat (limited to 'src/blocks.c')
-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')