* dbus/dbus-connection.c: Interfaces are optional in method
authorThiago Macieira <thiago@kde.org>
Sun, 23 Apr 2006 18:54:47 +0000 (18:54 +0000)
committerThiago Macieira <thiago@kde.org>
Sun, 23 Apr 2006 18:54:47 +0000 (18:54 +0000)
        calls, so don't give up if the interface parameter is NULL.
Patch reviewed by Havoc Pennington.

ChangeLog
dbus/dbus-connection.c

index baf1390..9b52b8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com
+2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>
+
+       * dbus/dbus-connection.c: Interfaces are optional in method
+        calls, so don't give up if the interface parameter is NULL.
+       Patch reviewed by Havoc Pennington.
+
+2006-04-23  Thiago Macieira  <thiago.macieira@trolltech.com>
 
        * qt/qdbusreply.h: Add default constructor and operator=
           (r532625)
index db6723b..4a2d087 100644 (file)
@@ -2257,8 +2257,7 @@ dbus_connection_send_preallocated (DBusConnection       *connection,
   _dbus_return_if_fail (message != NULL);
   _dbus_return_if_fail (preallocated->connection == connection);
   _dbus_return_if_fail (dbus_message_get_type (message) != DBUS_MESSAGE_TYPE_METHOD_CALL ||
-                        (dbus_message_get_interface (message) != NULL &&
-                         dbus_message_get_member (message) != NULL));
+                        dbus_message_get_member (message) != NULL);
   _dbus_return_if_fail (dbus_message_get_type (message) != DBUS_MESSAGE_TYPE_SIGNAL ||
                         (dbus_message_get_interface (message) != NULL &&
                          dbus_message_get_member (message) != NULL));