Skip to content

Commit b0fd38a

Browse files
committed
Merge branch 'jc/string-list-cleanup' into maint
Code clean-up. source: <[email protected]> * jc/string-list-cleanup: builtin/remote.c: use the right kind of STRING_LIST_INIT
2 parents 3f4fa1f + 1e11fab commit b0fd38a

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
@@ -1222,10 +1222,9 @@ static int get_one_entry(struct remote *remote, void *priv)
12221222

12231223
static int show_all(void)
12241224
{
1225-
struct string_list list = STRING_LIST_INIT_NODUP;
1225+
struct string_list list = STRING_LIST_INIT_DUP;
12261226
int result;
12271227

1228-
list.strdup_strings = 1;
12291228
result = for_each_remote(get_one_entry, &list);
12301229

12311230
if (!result) {

0 commit comments

Comments
 (0)