From: Peter Krempa Date: Tue, 28 Aug 2012 13:19:31 +0000 (+0200) Subject: nwfilter: Don't try to acquire DBus context when DBus is disabled X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f33dfffc41751c514c3c2a2e7e32258de6275198;p=libvirt.git nwfilter: Don't try to acquire DBus context when DBus is disabled To silence error if DBus support is not compiled in. --- diff --git a/src/nwfilter/nwfilter_driver.c b/src/nwfilter/nwfilter_driver.c index ae099606f2..a30026ee7c 100644 --- a/src/nwfilter/nwfilter_driver.c +++ b/src/nwfilter/nwfilter_driver.c @@ -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;