diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2014-10-22 13:38:55 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2014-10-22 13:38:55 +0200 |
commit | 309be0a148a7d3abc0beca5fd14b24f05bb938f0 (patch) | |
tree | 68a7b71607309d2713d7e533061d239068eabfc1 | |
parent | a7303a56b5e55c29cb5336c84a89b8347a355770 (diff) | |
download | libvirt-python-309be0a148a7d3abc0beca5fd14b24f05bb938f0.tar.gz |
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>
-rw-r--r-- | libvirt-override.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |