[libvirt] [libvirt-python PATCH 1/1] virDomainBlockCopy: initialize flags to 0

Pavel Hrdina phrdina at redhat.com
Wed Oct 22 11:53:23 UTC 2014


An optional argument if not passed isn't modified by the
PyArg_ParseTuple function.

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---

Sigh :/, pushed as trivial

 libvirt-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index a461eda..a53b46f 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -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",
-- 
2.0.4




More information about the libvir-list mailing list