提交 a23675d3 编写于 作者: J Jim Meyering

python: don't ignore virInitialize failure in module initialization

* python/libvirt-override.c (initlibvirtmod): Upon virInitialize
failure, skip the Py_InitModule call.
上级 6ab131ba
......@@ -3543,7 +3543,8 @@ initcygvirtmod
if (initialized != 0)
return;
virInitialize();
if (virInitialize() < 0)
return;
/* initialize the python extension module */
Py_InitModule((char *)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册