1
0
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:
Peter Rajnoha 2014-03-24 16:30:47 +01:00
parent 5dcec1734e
commit 4e47c34ffc

View File

@ -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;