1
0
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:
Bryn M. Reeves 2015-08-17 18:28:32 +01:00
parent 8967776713
commit b01e9651b0

View File

@ -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;