mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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)
|
||||
{
|
||||
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);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user