git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
146ed08
)
lib:tdb: Use C99 initializer for tdb_header
author
Andreas Schneider
<asn@samba.org>
Wed, 12 Dec 2018 20:26:35 +0000
(21:26 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:22 +0000
(10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/tdb/common/open.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/open.c
b/lib/tdb/common/open.c
index be5f8075557b317acdabba5329e473be31f5ee4c..dd5783ef8bc959409a962d56ad50b0b24490bd8f 100644
(file)
--- 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;