lib:tdb: Use C99 initializer for tdb_header
[samba.git] / 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;