Blob Blame Raw
From d18f479ec152d42fbc4bd8dd5861adb932737337 Mon Sep 17 00:00:00 2001
Message-Id: <d18f479ec152d42fbc4bd8dd5861adb932737337@dist-git>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Wed, 22 Oct 2014 14:38:13 +0200
Subject: [PATCH] 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>
(cherry picked from commit 309be0a148a7d3abc0beca5fd14b24f05bb938f0)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1155484
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 libvirt-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index 1aa3bf2..2dbe339 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -8105,7 +8105,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.1.3