From: Chengwei Yang Date: Fri, 6 Sep 2013 05:48:38 +0000 (+0800) Subject: Use the argument of dbus_connection_set_route_peer_messages() X-Git-Tag: dbus-1.6.16~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37df7c316bf2ab4ed3a64910fc0030c095f7b5ab;p=thirdparty%2Fdbus.git Use the argument of dbus_connection_set_route_peer_messages() The function dbus_connection_set_route_peer_messages() take a bool argument, however, in the implementation, it always hard-code to TRUE rather than take its bool argument. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69165 [amended commit message -smcv] Reviewed-by: Simon McVittie --- diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index 66315b3fd..b175a4458 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -5435,7 +5435,7 @@ dbus_connection_set_route_peer_messages (DBusConnection *connection, _dbus_return_if_fail (connection != NULL); CONNECTION_LOCK (connection); - connection->route_peer_messages = TRUE; + connection->route_peer_messages = value; CONNECTION_UNLOCK (connection); }