From a1ce666d68745a9bc65bd2709c581ed5105f656d Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 12 Dec 2018 21:26:35 +0100 Subject: [PATCH] lib:tdb: Use C99 initializer for tdb_header Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- lib/tdb/common/open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index be5f8075557..dd5783ef8bc 100644 --- a/lib/tdb/common/open.c +++ b/lib/tdb/common/open.c @@ -264,7 +264,9 @@ _PUBLIC_ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int td tdb_hash_func hash_fn) { int orig_errno = errno; - struct tdb_header header = {{0}}; + struct tdb_header header = { + .version = 0, + }; struct tdb_context *tdb; struct stat st; int rev = 0; -- 2.34.1