lib:tdb: Use C99 initializer for tdb_header
authorAndreas Schneider <asn@samba.org>
Wed, 12 Dec 2018 20:26:35 +0000 (21:26 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2019 12:00:11 +0000 (13:00 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit a1ce666d68745a9bc65bd2709c581ed5105f656d)

lib/tdb/common/open.c

index be5f8075557b317acdabba5329e473be31f5ee4c..dd5783ef8bc959409a962d56ad50b0b24490bd8f 100644 (file)
@@ -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;