mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
python-lvm: seg. fault in liblvm_lvm_percent_to_float
The first parameter needs to be present even if it isn't being used, otherwise the one any only parameter we get is null which causes PyArg_ParseTuple to seg. fault. Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
parent
a820a68619
commit
8073ce1690
@ -153,7 +153,7 @@ liblvm_lvm_list_vg_uuids(void)
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
liblvm_lvm_percent_to_float(PyObject *arg)
|
||||
liblvm_lvm_percent_to_float(PyObject *self, PyObject *arg)
|
||||
{
|
||||
double converted;
|
||||
int percent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user