diff options
author | Ben Trask <bentrask@comcast.net> | 2015-03-20 21:12:10 -0400 |
---|---|---|
committer | Ben Trask <bentrask@comcast.net> | 2015-04-07 09:26:07 -0400 |
commit | fbb0836feb25f3f5f3e3373c7c20eab62f30e036 (patch) | |
tree | 44819041c52dfebdffb8a3500ce664250d0ca2a3 /src | |
parent | 209ac5d2be3ddc9b0ff814c25903cd33f7dc94b4 (diff) |
Fix regression in remove_trailing_blank_lines().
Diffstat (limited to 'src')
-rw-r--r-- | src/blocks.c | 2 |
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') |