mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
python: don't ignore virInitialize failure in module initialization
* python/libvirt-override.c (initlibvirtmod): Upon virInitialize failure, skip the Py_InitModule call.
This commit is contained in:
parent
6ab131bae2
commit
a23675d36d
@ -3543,7 +3543,8 @@ initcygvirtmod
|
||||
if (initialized != 0)
|
||||
return;
|
||||
|
||||
virInitialize();
|
||||
if (virInitialize() < 0)
|
||||
return;
|
||||
|
||||
/* initialize the python extension module */
|
||||
Py_InitModule((char *)
|
||||
|
Loading…
Reference in New Issue
Block a user