diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:53 -0700 |
commit | bd4232fac3319890429ec303e2f7c3d287c8eaa3 (patch) | |
tree | b5032aca9cdafb5812801f2868cabddc23e2052a /transport.c | |
parent | Merge branch 'dd/test-stdout-count-lines' (diff) | |
parent | string-list.h users: change to use *_{nodup,dup}() (diff) | |
download | tgif-bd4232fac3319890429ec303e2f7c3d287c8eaa3.tar.xz |
Merge branch 'ab/struct-init'
Code cleanup around struct_type_init() functions.
* ab/struct-init:
string-list.h users: change to use *_{nodup,dup}()
string-list.[ch]: add a string_list_init_{nodup,dup}()
dir.[ch]: replace dir_init() with DIR_INIT
*.c *_init(): define in terms of corresponding *_INIT macro
*.h: move some *_INIT to designated initializers
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 745ffa2247..17e9629710 100644 --- a/transport.c +++ b/transport.c @@ -1055,7 +1055,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()"); |