提交 f33dfffc 编写于 作者: P Peter Krempa 提交者: Daniel Veillard

nwfilter: Don't try to acquire DBus context when DBus is disabled

To silence error if DBus support is not compiled in.
上级 2a41bc95
......@@ -168,7 +168,11 @@ static int
nwfilterDriverStartup(int privileged)
{
char *base = NULL;
DBusConnection *sysbus = virDBusGetSystemBus();
DBusConnection *sysbus = NULL;
#if HAVE_DBUS
sysbus = virDBusGetSystemBus();
#endif /* HAVE_DBUS */
if (VIR_ALLOC(driverState) < 0)
goto alloc_err_exit;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册