Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
interpret-trailers: don't duplicate option strings
author
Jeff King
<peff@peff.net>
Mon, 13 Jun 2016 05:39:20 +0000
(
01:39
-0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 13 Jun 2016 17:33:14 +0000
(10:33 -0700)
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>
builtin/interpret-trailers.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7a7a517
)
diff --git
a/builtin/interpret-trailers.c
b/builtin/interpret-trailers.c
index 46838d24a90a7dff11624902281fd72ce6409756..b75e95311177f1db1907e44b36317a94d28ee38d 100644
(file)
--- a/
builtin/interpret-trailers.c
+++ b/
builtin/interpret-trailers.c
@@
-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_
NO
DUP;
struct option options[] = {
OPT_BOOL(0, "trim-empty", &trim_empty, N_("trim empty trailers")),