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:
Peter Krempa 2012-08-28 15:19:31 +02:00 committed by Daniel Veillard
parent 2a41bc95b5
commit f33dfffc41

View File

@ -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;