git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib:tdb: Use C99 initializer for tdb_header
[samba.git]
/
lib
/
tdb
/
common
/
open.c
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;