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 /refs | |
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 'refs')
-rw-r--r-- | refs/packed-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 66cb90c79e..f8aa97d799 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -1425,7 +1425,7 @@ static int packed_transaction_prepare(struct ref_store *ref_store, */ CALLOC_ARRAY(data, 1); - string_list_init(&data->updates, 0); + string_list_init_nodup(&data->updates); transaction->backend_data = data; |