diff --git a/lib/config/config.c b/lib/config/config.c index 8acb87d05..ad02f5fb3 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -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)); if (!cf) goto fail; - cf->timestamp = 0; - cf->exists = 0; cf->keep_open = keep_open; dm_config_set_custom(cft, cf); diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 368f9e338..dfd917480 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -105,10 +105,8 @@ struct dm_config_tree *dm_config_create(void) dm_pool_destroy(mem); return 0; } - cft->root = NULL; - cft->cascade = NULL; - cft->custom = NULL; cft->mem = mem; + return cft; }