mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: add extra check for existance of pointer
Coverity here is not fully-in-picture - but please it with validation of pointer which currently cannot be null, since we always return at least empty string.
This commit is contained in:
parent
b83a20b80a
commit
18fd0bd20c
@ -2340,7 +2340,7 @@ static int _lvconvert_pool_repair(struct cmd_context *cmd,
|
||||
struct pipe_data pdata;
|
||||
FILE *f;
|
||||
|
||||
if (!thin_repair[0]) {
|
||||
if (!thin_repair || !thin_repair[0]) {
|
||||
log_error("Thin repair commnand is not configured. Repair is disabled.");
|
||||
return 0; /* Checking disabled */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user