Message ID | c160222ab3cee77c88cb947f4bf18993a923d53b.1626777394.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | a95081c2471ae8658e0e76abd3a8c6a43a9f09cb |
Headers | show |
Series | diff --color-moved[-ws] speedups | expand |
diff --git a/diff.c b/diff.c index f899083d028..31a20a34240 100644 --- a/diff.c +++ b/diff.c @@ -1460,7 +1460,9 @@ static void emit_diff_symbol_from_struct(struct diff_options *o, static void emit_diff_symbol(struct diff_options *o, enum diff_symbol s, const char *line, int len, unsigned flags) { - struct emitted_diff_symbol e = {line, len, flags, 0, 0, s}; + struct emitted_diff_symbol e = { + .line = line, .len = len, .flags = flags, .s = s + }; if (o->emitted_symbols) append_emitted_diff_symbol(o, &e);