From: Andreas Schneider Date: Wed, 12 Dec 2018 20:26:35 +0000 (+0100) Subject: lib:tdb: Use C99 initializer for tdb_header X-Git-Tag: ldb-1.6.1~350 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ce666d68745a9bc65bd2709c581ed5105f656d;p=thirdparty%2Fsamba.git lib:tdb: Use C99 initializer for tdb_header Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- 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;