Thread (9 messages) 9 messages, 3 authors, 2020-05-05
STALE2262d

[PATCH 5/6] fixup! Add reftable library

From: Johannes Schindelin via GitGitGadget <hidden>
Date: 2020-05-04 13:31:39
Subsystem: the rest · Maintainer: Linus Torvalds

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help