summaryrefslogtreecommitdiff
path: root/tools/dumpconfig.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2013-03-06 12:53:27 +0100
committerPeter Rajnoha <prajnoha@redhat.com>2013-03-06 12:53:27 +0100
commit6b777ccbb5dca4a6d80b8b0bf071993c049f6a9f (patch)
tree232cf4408e6bc6f0c8c1e5cc7285362ed2fec8f3 /tools/dumpconfig.c
parentf88690221bb23668e0b763d212b58eeaaa4150a4 (diff)
downloadlvm2-6b777ccbb5dca4a6d80b8b0bf071993c049f6a9f.tar.gz
cleanup: get rid of compiler's warning about possible unitialized variable
Diffstat (limited to 'tools/dumpconfig.c')
-rw-r--r--tools/dumpconfig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/dumpconfig.c b/tools/dumpconfig.c
index a340eb071..9ba451e04 100644
--- a/tools/dumpconfig.c
+++ b/tools/dumpconfig.c
@@ -37,7 +37,7 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv)
const char *type = arg_str_value(cmd, configtype_ARG, "current");
unsigned int major, minor, patchlevel;
struct config_def_tree_spec tree_spec = {0};
- struct dm_config_tree *cft;
+ struct dm_config_tree *cft = cmd->cft;
int r = ECMD_PROCESSED;
if (arg_count(cmd, configtype_ARG) && arg_count(cmd, validate_ARG)) {
@@ -71,7 +71,6 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv)
log_error("--atversion has no effect with --type current");
return EINVALID_CMD_LINE;
}
- cft = cmd->cft;
tree_spec.type = CFG_DEF_TREE_CURRENT;
config_def_check(cmd, 1, 1, 1);
}