master - dmsetup: make sure subcommand is initialised (Coverity)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b01e9651b06a6362339d4c3d5d8da43896dae50f Commit: b01e9651b06a6362339d4c3d5d8da43896dae50f Parent: 8967776713e1be2d584bc8a9713eaaaf467d8ac7 Author: Bryn M. Reeves <[email protected]> AuthorDate: Mon Aug 17 18:28:32 2015 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Mon Aug 17 18:37:16 2015 +0100
dmsetup: make sure subcommand is initialised (Coverity)
--- tools/dmsetup.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
tools/dmsetup.c +2 -1
@@ -5964,7 +5964,8 @@ unknown:if (cmd->has_subcommands) { subcommand = argv[0 ]; argc--, argv++; - } + }else + subcommand = (char *)"" ;if (_switches[COLS_ARG ] && !_report_init (cmd, subcommand)) goto out;