mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
debug: fix error path
Coverity: log_error may have dereference NULL pointer - use directly segtype string name.
This commit is contained in:
parent
d444accdbf
commit
a567ec65a9
@ -2724,7 +2724,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
|
||||
if (!pool_segtype ||
|
||||
!pool_segtype->ops->target_present(cmd, NULL, &target_attr)) {
|
||||
log_error("%s: Required device-mapper target(s) not detected in your kernel.",
|
||||
pool_segtype->name);
|
||||
str_seg_type);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user