1
0
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:
Tony Asleson 2012-10-23 14:50:14 -05:00
parent a820a68619
commit 8073ce1690

View File

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