1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

dmsetup: cleanup warn for older compilers

Older gcc somehow thinks there is a path of using
subcommand uninitilized.

So make it more obvious there is no such one.
This commit is contained in:
Zdenek Kabelac 2015-11-09 10:48:40 +01:00
parent 5aae8de776
commit 84a9546869

View File

@ -6132,7 +6132,7 @@ int main(int argc, char **argv)
int ret = 1, r;
const char *dev_dir;
const struct command *cmd;
const char *subcommand;
const char *subcommand = "";
int multiple_devices;
(void) setlocale(LC_ALL, "");
@ -6227,8 +6227,7 @@ unknown:
if (cmd->has_subcommands) {
subcommand = argv[0];
argc--, argv++;
} else
subcommand = "";
}
if (_switches[COLS_ARG] && !_report_init(cmd, subcommand))
goto_out;