1
0
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:
Amitay Isaacs 2016-07-27 14:57:58 +10:00 committed by Stefan Metzmacher
parent 44bbdbef2a
commit a86be20872

View File

@ -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;
}