mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
config: also check empty arrays for difference against default values
This commit is contained in:
parent
5dcec1734e
commit
4e47c34ffc
@ -740,6 +740,9 @@ static int _check_value_differs_from_default(struct cft_check_handle *handle,
|
||||
diff = strcmp(str, v->v.str);
|
||||
}
|
||||
break;
|
||||
case DM_CFG_EMPTY_ARRAY:
|
||||
diff = v_def->type != DM_CFG_EMPTY_ARRAY;
|
||||
break;
|
||||
default:
|
||||
log_error(INTERNAL_ERROR "inconsistent state reached in _check_value_differs_from_default");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user