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

thin: missing type is error

This commit is contained in:
Zdenek Kabelac 2017-12-06 13:21:01 +01:00
parent 2208ebfe16
commit c3e224ad0e

View File

@ -1394,9 +1394,9 @@ static int _thin_pool_get_status(struct dm_tree_node *dnode,
dm_get_next_target(dmt, NULL, &start, &length, &type, &params);
if (type && (strcmp(type, "thin-pool") != 0)) {
if (!type || (strcmp(type, "thin-pool") != 0)) {
log_error("Expected thin-pool target for %s and got %s.",
_node_name(dnode), type);
_node_name(dnode), type ? : "no target");
goto out;
}