1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

pool: do not pass empty string in callback

When preparing cmdline to executing dmpd tool, avoid adding
empty string ("") on such line.
This commit is contained in:
Zdenek Kabelac 2023-07-04 22:46:50 +02:00
parent e36028b7d2
commit e022805f1d

View File

@ -2529,7 +2529,8 @@ static int _pool_callback(struct dm_tree_node *node,
data->global);
return 0;
}
argv[++args] = cv->v.str;
if (cv->v.str[0])
argv[++args] = cv->v.str;
}
if (args == 16) {