mirror of https://gitee.com/openkylin/libvirt.git
python: Fix a PyList usage mistake
Fix PyList usage mistake in Function libvirt_lxc_virDomainLxcOpenNamespace. https://bugzilla.redhat.com/show_bug.cgi?id=1002383 Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
834a86eae5
commit
c26181495f
|
@ -80,7 +80,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
|
|||
if (c_retval < 0)
|
||||
return VIR_PY_NONE;
|
||||
|
||||
py_retval = PyList_New(c_retval);
|
||||
py_retval = PyList_New(0);
|
||||
for (i = 0; i < c_retval; i++) {
|
||||
PyObject *item = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue