From: Johannes Schindelin via GitGitGadget Date: Mon, 04 May 2020 13:31:25 GMT Subject: [PATCH 5/6] fixup! Add reftable library Message-ID: <36616471d4afea57ca90825389e896e6c71013e2.1588599086.git.gitgitgadget@gmail.com> In-Reply-To: From: Johannes Schindelin Yet another instance of `= {}` initialization. Signed-off-by: Johannes Schindelin --- reftable/stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reftable/stack.c b/reftable/stack.c index 2d0b831dda1..2f3dfd51861 100644 --- a/reftable/stack.c +++ b/reftable/stack.c @@ -19,7 +19,7 @@ int reftable_new_stack(struct reftable_stack **dest, const char *dir, { struct reftable_stack *p = reftable_calloc(sizeof(struct reftable_stack)); - struct slice list_file_name = {}; + struct slice list_file_name = { 0 }; int err = 0; if (config.hash_id == 0) { @@ -417,7 +417,7 @@ static int reftable_stack_init_addition(struct reftable_addition *add, void reftable_addition_close(struct reftable_addition *add) { int i = 0; - struct slice nm = {}; + struct slice nm = { 0 }; for (i = 0; i < add->new_tables_len; i++) { slice_set_string(&nm, add->stack->list_file); slice_append_string(&nm, "/"); -- gitgitgadget