mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop zeroing of zallocated data
This commit is contained in:
parent
a12f92c494
commit
35ab841ecf
@ -67,8 +67,6 @@ struct dm_config_tree *config_file_open(const char *filename, int keep_open)
|
|||||||
cf = dm_pool_zalloc(cft->mem, sizeof(struct config_file));
|
cf = dm_pool_zalloc(cft->mem, sizeof(struct config_file));
|
||||||
if (!cf) goto fail;
|
if (!cf) goto fail;
|
||||||
|
|
||||||
cf->timestamp = 0;
|
|
||||||
cf->exists = 0;
|
|
||||||
cf->keep_open = keep_open;
|
cf->keep_open = keep_open;
|
||||||
dm_config_set_custom(cft, cf);
|
dm_config_set_custom(cft, cf);
|
||||||
|
|
||||||
|
@ -105,10 +105,8 @@ struct dm_config_tree *dm_config_create(void)
|
|||||||
dm_pool_destroy(mem);
|
dm_pool_destroy(mem);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
cft->root = NULL;
|
|
||||||
cft->cascade = NULL;
|
|
||||||
cft->custom = NULL;
|
|
||||||
cft->mem = mem;
|
cft->mem = mem;
|
||||||
|
|
||||||
return cft;
|
return cft;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user