From: Johannes Schindelin <redacted>
Yet another instance of `= {}` initialization.
Signed-off-by: Johannes Schindelin <redacted>
---
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