mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cov: pvck validates setup_device return value
This commit is contained in:
parent
b6e9892bc6
commit
6427803252
@ -3178,9 +3178,10 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
* but this is here to preserve the historical output.
|
* but this is here to preserve the historical output.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1) {
|
||||||
setup_device(cmd, argv[0]);
|
if (!setup_device(cmd, argv[0]))
|
||||||
else if (!setup_devices(cmd))
|
return_ECMD_FAILED;
|
||||||
|
} else if (!setup_devices(cmd))
|
||||||
return_ECMD_FAILED;
|
return_ECMD_FAILED;
|
||||||
|
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user