Thread (22 messages) 22 messages, 5 authors, 2020-12-03
STALE2039d

[PATCH 5/6] fixup! reftable: rest of library

From: Johannes Schindelin via GitGitGadget <hidden>
Date: 2020-11-28 22:17:02
Subsystem: the rest · Maintainer: Linus Torvalds

From: Johannes Schindelin <redacted>

Yet another instance of `= {}` initialization.

Signed-off-by: Johannes Schindelin <redacted>
---
 reftable/dump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/reftable/dump.c b/reftable/dump.c
index e990bffe0c..7d620a3cf0 100644
--- a/reftable/dump.c
+++ b/reftable/dump.c
@@ -82,7 +82,7 @@ static int dump_table(const char *tablename)
 static int compact_stack(const char *stackdir)
 {
 	struct reftable_stack *stack = NULL;
-	struct reftable_write_options cfg = {};
+	struct reftable_write_options cfg = { 0 };
 
 	int err = reftable_new_stack(&stack, stackdir, cfg);
 	if (err < 0)
@@ -101,7 +101,7 @@ static int compact_stack(const char *stackdir)
 static int dump_stack(const char *stackdir)
 {
 	struct reftable_stack *stack = NULL;
-	struct reftable_write_options cfg = {};
+	struct reftable_write_options cfg = { 0 };
 	struct reftable_iterator it = { NULL };
 	struct reftable_ref_record ref = { NULL };
 	struct reftable_log_record log = { NULL };
-- 
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