mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
dmsetup: make sure subcommand is initialised (Coverity)
This commit is contained in:
parent
8967776713
commit
b01e9651b0
@ -5964,7 +5964,8 @@ unknown:
|
|||||||
if (cmd->has_subcommands) {
|
if (cmd->has_subcommands) {
|
||||||
subcommand = argv[0];
|
subcommand = argv[0];
|
||||||
argc--, argv++;
|
argc--, argv++;
|
||||||
}
|
} else
|
||||||
|
subcommand = (char *) "";
|
||||||
|
|
||||||
if (_switches[COLS_ARG] && !_report_init(cmd, subcommand))
|
if (_switches[COLS_ARG] && !_report_init(cmd, subcommand))
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user