diff --git a/bus/driver.c b/bus/driver.c index e2a3bbb1..a131170d 100644 --- a/bus/driver.c +++ b/bus/driver.c @@ -52,14 +52,14 @@ nonnull (const char *maybe_null, } static DBusConnection * -bus_driver_get_owner_of_name (DBusConnection *connection, +bus_driver_get_owner_of_name (DBusConnection *observer, const char *name) { BusRegistry *registry; BusService *serv; DBusString str; - registry = bus_connection_get_registry (connection); + registry = bus_connection_get_registry (observer); _dbus_string_init_const (&str, name); serv = bus_registry_lookup (registry, &str);