[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH libvirt-python 05/17] Fix potential use of uninitialized value in virDomainGetVcpuPinInfo



From: "Daniel P. Berrange" <berrange redhat com>

The virDomainGetVcpuPinInfo python wrapper had a potential use of
uninitialized values

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 libvirt-override.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]