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:
Jim Meyering 2010-05-18 13:46:27 +02:00
parent 6ab131bae2
commit a23675d36d

View File

@ -3543,7 +3543,8 @@ initcygvirtmod
if (initialized != 0)
return;
virInitialize();
if (virInitialize() < 0)
return;
/* initialize the python extension module */
Py_InitModule((char *)