]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix pass wrong type of argument to function
authorChengwei Yang <chengwei.yang@intel.com>
Fri, 6 Sep 2013 03:26:44 +0000 (11:26 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 13 Sep 2013 11:29:36 +0000 (12:29 +0100)
The last argument of function _dbus_transport_new_for_socket() is
declared as const DBusString *. However, it is passed as a bool value.
Although the value of FALSE equals NULL in fact, this is an incorrect
use of function.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69165
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-server-socket.c

index ae4b602e8c506c13080ea4de231a379b1272c6b9..8084764703f56df8677d76e8d7e2b1573aa0d1c1 100644 (file)
@@ -101,7 +101,7 @@ handle_new_client_fd_and_unlock (DBusServer *server,
       return TRUE;
     }
 
-  transport = _dbus_transport_new_for_socket (client_fd, &server->guid_hex, FALSE);
+  transport = _dbus_transport_new_for_socket (client_fd, &server->guid_hex, NULL);
   if (transport == NULL)
     {
       _dbus_close_socket (client_fd, NULL);