commit - f10244c07ff073c7f69ecf2044ac34e85f0666a0
commit + 90de04bc7f1b85b9c491bcd124f6178fad005de1
blob - 4619d898de367bdd4a4c3ff090a223135dbb0935
blob + 9b918583a6db04e4fff29bcb04a7490e23db43cc
--- lib/diff3.c
+++ lib/diff3.c
off_t len;
char *line = NULL;
size_t linesize = 0;
- ssize_t linelen, k;
+ ssize_t linelen = 0, k;
for (; n > 0; n--) {
if (!d3s->overlap[n]) {
goto done;
}
err = diff_output(d3s->diffbuf, "%s%s\n",
- line[linelen] == '\n' ? ":" : "",
+ linelen > 0 && line[linelen] == '\n' ? ":" : "",
GOT_DIFF_CONFLICT_MARKER_SEP);
if (err)
goto done;