summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-09-09 11:01:34 +0100
committerDaniel P. Berrange <berrange@redhat.com>2013-09-09 16:41:57 +0100
commit4d0db39b41e6aa4f36c7bbe55799bfbc4ccec4ec (patch)
tree901ede9a7f4ff4b4d3b74fc9f61f732fc5a2b2d4
parent61076cc8b235a797099c044b3560af2afecc1c67 (diff)
downloadlibvirt-python-split-4d0db39b41e6aa4f36c7bbe55799bfbc4ccec4ec.zip
libvirt-python-split-4d0db39b41e6aa4f36c7bbe55799bfbc4ccec4ec.tar.gz
libvirt-python-split-4d0db39b41e6aa4f36c7bbe55799bfbc4ccec4ec.tar.xz
Fix potential use of uninitialized value in virDomainGetVcpuPinInfo
The virDomainGetVcpuPinInfo python wrapper had a potential use of uninitialized values Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--libvirt-override.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index f4a36cf..46cdd2f 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -1766,7 +1766,7 @@ libvirt_virDomainGetVcpuPinInfo(PyObject *self,
virDomainPtr domain;
PyObject *pyobj_domain, *pycpumaps = NULL;
virDomainInfo dominfo;
- unsigned char *cpumaps;
+ unsigned char *cpumaps = NULL;
size_t cpumaplen, vcpu, pcpu;
unsigned int flags;
int i_retval, cpunum;