mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
nwfilter: Don't try to acquire DBus context when DBus is disabled
To silence error if DBus support is not compiled in.
This commit is contained in:
parent
2a41bc95b5
commit
f33dfffc41
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user