mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
interpret-trailers: don't duplicate option strings
There's no need to do so; the argv strings will last until the end of the program. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7a7a517a2f
commit
7c4b169585
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ static const char * const git_interpret_trailers_usage[] = {
|
|||
int cmd_interpret_trailers(int argc, const char **argv, const char *prefix)
|
||||
{
|
||||
int trim_empty = 0;
|
||||
struct string_list trailers = STRING_LIST_INIT_DUP;
|
||||
struct string_list trailers = STRING_LIST_INIT_NODUP;
|
||||
|
||||
struct option options[] = {
|
||||
OPT_BOOL(0, "trim-empty", &trim_empty, N_("trim empty trailers")),
|
||||
|
|
Loading…
Reference in a new issue