mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-tests: Fix valgrind unintialized error
struct ctdb_dbid has padding and needs to be initialized. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
44bbdbef2a
commit
a86be20872
@ -1283,7 +1283,7 @@ static void control_get_dbmap(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
dbmap->num = ctdb->db_map->num_dbs;
|
||||
dbmap->dbs = talloc_array(dbmap, struct ctdb_dbid, dbmap->num);
|
||||
dbmap->dbs = talloc_zero_array(dbmap, struct ctdb_dbid, dbmap->num);
|
||||
if (dbmap->dbs == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user