]> sourceware.org Git - lvm2.git/commitdiff
dmsetup: make sure subcommand is initialised (Coverity)
authorBryn M. Reeves <bmr@redhat.com>
Mon, 17 Aug 2015 17:28:32 +0000 (18:28 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Mon, 17 Aug 2015 17:37:16 +0000 (18:37 +0100)
tools/dmsetup.c

index dc002b0cae9cf5d9ad7fddece09c1f4c0783e656..8bcf4d5c8d7205c3500d7ee06861bfbdfc8f1182 100644 (file)
@@ -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;
This page took 0.048975 seconds and 5 git commands to generate.