]> sourceware.org Git - lvm2.git/commitdiff
cleanup: get rid of compiler's warning about possible unitialized variable
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 6 Mar 2013 11:53:27 +0000 (12:53 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 6 Mar 2013 11:53:27 +0000 (12:53 +0100)
tools/dumpconfig.c

index a340eb071fb4df9534c55369d5a27de70413aadd..9ba451e048f8e3f324734d26311184f846545e0d 100644 (file)
@@ -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);
        }
This page took 0.03857 seconds and 5 git commands to generate.