diff options
Diffstat (limited to 'git-rediff.c')
-rw-r--r-- | git-rediff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rediff.c b/git-rediff.c index 6ce75c2..75f043b 100644 --- a/git-rediff.c +++ b/git-rediff.c @@ -448,7 +448,7 @@ rediff_file(struct text *text_out, const struct text *text_in, const char *fname subhunk++; if ((size_t)subhunk == hunk.nsubs) hunk.subs = ereallocarray(hunk.subs, ++hunk.nsubs, sizeof(*hunk.subs)); - hunk.subs[subhunk].text.nlines = 0; + hunk.subs[subhunk].text = (struct text){0}; hunk.subs[subhunk].head = &text_in->lines[i]; } else if (line_startswith(&text_in->lines[i], ">>>>>>>")) { if (subhunk < 0) |