Merge branch 'jc/string-list-cleanup'

Code clean-up.

* jc/string-list-cleanup:
  builtin/remote.c: use the right kind of STRING_LIST_INIT
This commit is contained in:
Junio C Hamano 2022-08-03 13:36:09 -07:00
commit 30c6495e1e

View File

@ -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) {