mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-29 19:41:52 +03:00
virDomainBlockCopy: initialize flags to 0
An optional argument if not passed isn't modified by the PyArg_ParseTuple function. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
@ -8171,7 +8171,7 @@ libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
|
||||
char *destxml = NULL;
|
||||
virTypedParameterPtr params = NULL;
|
||||
int nparams = 0;
|
||||
unsigned int flags;
|
||||
unsigned int flags = 0;
|
||||
int c_retval;
|
||||
|
||||
if (!PyArg_ParseTuple(args, (char *) "Ozz|OI:virDomainBlockCopy",
|
||||
|
Reference in New Issue
Block a user