summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-08-03 20:36:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-03 20:36:09 (GMT)
commit30c6495e1ed09368ed0e3cca2758d3c886bd8c6b (patch)
treefbe65b9383ccbd2f71f1ed86febbf753e898eb50
parent966ff64a3042f879bca83e2376128cf5f39737a7 (diff)
parent1e11fab59c71d191970233cf8c2f573458ed952c (diff)
downloadgit-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.zip
git-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.tar.gz
git-30c6495e1ed09368ed0e3cca2758d3c886bd8c6b.tar.bz2
Merge branch 'jc/string-list-cleanup'
Code clean-up. * 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 d9b8746..c713463 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -1229,10 +1229,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) {