1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

report: check value of args_are_pvs, not the pointer (fix for commit 9ea77b7)

This commit is contained in:
Peter Rajnoha 2015-03-02 10:36:32 +01:00
parent c32efc7f7e
commit 047fe6c59f

View File

@ -576,7 +576,7 @@ static void _check_pv_list(struct cmd_context *cmd, int argc, char **argv,
*report_type == LABEL ||
*report_type == PVSEGS) ? 1 : 0;
if (args_are_pvs && argc) {
if (*args_are_pvs && argc) {
for (i = 0; i < argc; i++) {
if (!rescan_done && !dev_cache_get(argv[i], cmd->full_filter)) {
cmd->filter->wipe(cmd->filter);