vendor/libgit2/src/diff_print.c in rugged-0.23.3 vs vendor/libgit2/src/diff_print.c in rugged-0.24.0b0

- old
+ new

@@ -356,10 +356,11 @@ return -1; scan += chunk_len; pi->line.num_lines++; } + git_buf_putc(pi->buf, '\n'); return 0; } static int diff_print_load_content( @@ -414,10 +415,9 @@ git_buf_printf(pi->buf, "GIT binary patch\n"); pi->line.num_lines++; if ((error = format_binary(pi, binary->new_file.type, binary->new_file.data, binary->new_file.datalen, binary->new_file.inflatedlen)) < 0 || - (error = git_buf_putc(pi->buf, '\n')) < 0 || (error = format_binary(pi, binary->old_file.type, binary->old_file.data, binary->old_file.datalen, binary->old_file.inflatedlen)) < 0) { if (error == GIT_EBUFS) { giterr_clear();