mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
clang: add extra check
Make clang happier.
This commit is contained in:
parent
c2679f76e5
commit
d2e7a05573
@ -2197,7 +2197,7 @@ static int _validate_lock_args_chars(const char *lock_args)
|
|||||||
|
|
||||||
static int _validate_vg_lock_args(struct volume_group *vg)
|
static int _validate_vg_lock_args(struct volume_group *vg)
|
||||||
{
|
{
|
||||||
if (!_validate_lock_args_chars(vg->lock_args)) {
|
if (!vg->lock_args || !_validate_lock_args_chars(vg->lock_args)) {
|
||||||
log_error(INTERNAL_ERROR "VG %s has invalid lock_args chars", vg->name);
|
log_error(INTERNAL_ERROR "VG %s has invalid lock_args chars", vg->name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user