mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
dbwrap_ctdb: use struct initializer in db_ctdb_traverse_read()
This ensures all struct members are implicitly initialized. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
dcc50d6707
commit
fce54bf071
@ -1757,10 +1757,11 @@ static int db_ctdb_traverse_read(struct db_context *db,
|
|||||||
struct db_ctdb_ctx);
|
struct db_ctdb_ctx);
|
||||||
struct traverse_state state;
|
struct traverse_state state;
|
||||||
|
|
||||||
state.db = db;
|
state = (struct traverse_state) {
|
||||||
state.fn = fn;
|
.db = db,
|
||||||
state.private_data = private_data;
|
.fn = fn,
|
||||||
state.count = 0;
|
.private_data = private_data,
|
||||||
|
};
|
||||||
|
|
||||||
if (db->persistent) {
|
if (db->persistent) {
|
||||||
/* for persistent databases we don't need to do a ctdb traverse,
|
/* for persistent databases we don't need to do a ctdb traverse,
|
||||||
|
Loading…
Reference in New Issue
Block a user