diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-07-01 13:51:29 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-01 22:32:22 +0300 |
commit | bc40dfb10a06612813a3f9b733d65af0732208b2 (patch) | |
tree | 5b8b6a53a70365d72762b7181ed4bb108e6ffea4 /transport.c | |
parent | 770fedaf9fb156bd8c18da41770eac0cb63fba63 (diff) |
string-list.h users: change to use *_{nodup,dup}()
Change all in-tree users of the string_list_init(LIST, BOOL) API to
use string_list_init_{nodup,dup}(LIST) instead.
As noted in the preceding commit let's leave the now-unused
string_list_init() wrapper in-place for any in-flight users, it can be
removed at some later date.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c index 6cf3da19eb..7ee11e93e7 100644 --- a/transport.c +++ b/transport.c @@ -1050,7 +1050,7 @@ struct transport *transport_get(struct remote *remote, const char *url) struct transport *ret = xcalloc(1, sizeof(*ret)); ret->progress = isatty(2); - string_list_init(&ret->pack_lockfiles, 1); + string_list_init_dup(&ret->pack_lockfiles); if (!remote) BUG("No remote provided to transport_get()"); |