Blame SOURCES/libvirt-python-virDomainBlockCopy-initialize-flags-to-0.patch

b79911
From d18f479ec152d42fbc4bd8dd5861adb932737337 Mon Sep 17 00:00:00 2001
b79911
Message-Id: <d18f479ec152d42fbc4bd8dd5861adb932737337@dist-git>
b79911
From: Pavel Hrdina <phrdina@redhat.com>
b79911
Date: Wed, 22 Oct 2014 14:38:13 +0200
b79911
Subject: [PATCH] virDomainBlockCopy: initialize flags to 0
b79911
b79911
An optional argument if not passed isn't modified by the
b79911
PyArg_ParseTuple function.
b79911
b79911
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
b79911
(cherry picked from commit 309be0a148a7d3abc0beca5fd14b24f05bb938f0)
b79911
b79911
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1155484
b79911
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
b79911
---
b79911
 libvirt-override.c | 2 +-
b79911
 1 file changed, 1 insertion(+), 1 deletion(-)
b79911
b79911
diff --git a/libvirt-override.c b/libvirt-override.c
b79911
index 1aa3bf2..2dbe339 100644
b79911
--- a/libvirt-override.c
b79911
+++ b/libvirt-override.c
b79911
@@ -8105,7 +8105,7 @@ libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
b79911
     char *destxml = NULL;
b79911
     virTypedParameterPtr params = NULL;
b79911
     int nparams = 0;
b79911
-    unsigned int flags;
b79911
+    unsigned int flags = 0;
b79911
     int c_retval;
b79911
 
b79911
     if (!PyArg_ParseTuple(args, (char *) "Ozz|OI:virDomainBlockCopy",
b79911
-- 
b79911
2.1.3
b79911