mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvm2api: use fully initilized struct
Don't pass partially initialized struct.
This commit is contained in:
parent
49e3fd1ce8
commit
7278556c76
@ -324,9 +324,10 @@ static PyObject *_liblvm_lvm_pv_remove(PyObject *self, PyObject *arg)
|
||||
static int _set_pv_numeric_prop(pv_create_params_t pv_params, const char *name,
|
||||
unsigned long long value)
|
||||
{
|
||||
struct lvm_property_value prop_value;
|
||||
prop_value.is_integer = 1;
|
||||
prop_value.value.integer = value;
|
||||
struct lvm_property_value prop_value = {
|
||||
.is_integer = 1,
|
||||
.value.integer = value,
|
||||
};
|
||||
|
||||
return lvm_pv_params_set_property(pv_params, name, &prop_value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user