mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +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:
parent
5aae8de776
commit
84a9546869
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user