Skip to content

Commit 9dde669

Browse files
committed
Merge branch 'jc/string-list-cleanup' into seen
Code clean-up. * jc/string-list-cleanup: builtin/remote.c: use the right kind of STRING_LIST_INIT
2 parents 8c37444 + 1e11fab commit 9dde669

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/remote.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,10 +1229,9 @@ static int get_one_entry(struct remote *remote, void *priv)
12291229

12301230
static int show_all(void)
12311231
{
1232-
struct string_list list = STRING_LIST_INIT_NODUP;
1232+
struct string_list list = STRING_LIST_INIT_DUP;
12331233
int result;
12341234

1235-
list.strdup_strings = 1;
12361235
result = for_each_remote(get_one_entry, &list);
12371236

12381237
if (!result) {

0 commit comments

Comments
 (0)