mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
report: check value of args_are_pvs, not the pointer (fix for commit 9ea77b7)
This commit is contained in:
parent
c32efc7f7e
commit
047fe6c59f
@ -576,7 +576,7 @@ static void _check_pv_list(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
*report_type == LABEL ||
|
*report_type == LABEL ||
|
||||||
*report_type == PVSEGS) ? 1 : 0;
|
*report_type == PVSEGS) ? 1 : 0;
|
||||||
|
|
||||||
if (args_are_pvs && argc) {
|
if (*args_are_pvs && argc) {
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
if (!rescan_done && !dev_cache_get(argv[i], cmd->full_filter)) {
|
if (!rescan_done && !dev_cache_get(argv[i], cmd->full_filter)) {
|
||||||
cmd->filter->wipe(cmd->filter);
|
cmd->filter->wipe(cmd->filter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user