summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-11 06:52:36 +0200
committerJunio C Hamano <gitster@pobox.com>2022-08-11 06:52:36 +0200
commitb0fd38a5159f3cf5dfcb40776c863d42b695491a (patch)
tree3fd6a82c81cbc784d6ded7a028fbd3ee3a3324cf
parentMerge branch 'mt/pkt-line-comment-tweak' into maint (diff)
parentbuiltin/remote.c: use the right kind of STRING_LIST_INIT (diff)
downloadgit-b0fd38a5159f3cf5dfcb40776c863d42b695491a.tar.xz
git-b0fd38a5159f3cf5dfcb40776c863d42b695491a.zip
Merge branch 'jc/string-list-cleanup' into maint
Code clean-up. source: <xmqq7d471dns.fsf@gitster.g> * jc/string-list-cleanup: builtin/remote.c: use the right kind of STRING_LIST_INIT
-rw-r--r--builtin/remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index d4b69fe778..a3a0c27d7a 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -1222,10 +1222,9 @@ static int get_one_entry(struct remote *remote, void *priv)
static int show_all(void)
{
- struct string_list list = STRING_LIST_INIT_NODUP;
+ struct string_list list = STRING_LIST_INIT_DUP;
int result;
- list.strdup_strings = 1;
result = for_each_remote(get_one_entry, &list);
if (!result) {