diff --git a/tools/lvconvert.c b/tools/lvconvert.c index a7df26d13..c6cea0d25 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -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 */ }