2011-09-12 07:28:52 +00:00
|
|
|
$OpenBSD: patch-gnome-session_gsm-dbus-client_c,v 1.5 2011/09/12 07:28:54 jasper Exp $
|
2009-11-12 00:22:55 +00:00
|
|
|
|
|
|
|
dbus_message_get_path() can return NULL
|
|
|
|
|
2011-09-12 07:28:52 +00:00
|
|
|
--- gnome-session/gsm-dbus-client.c.orig Tue Mar 22 21:31:43 2011
|
|
|
|
+++ gnome-session/gsm-dbus-client.c Wed May 18 14:37:20 2011
|
|
|
|
@@ -212,10 +212,11 @@ client_dbus_filter_function (DBusConnection *connectio
|
2011-04-06 18:33:03 +00:00
|
|
|
|
2009-11-12 00:22:55 +00:00
|
|
|
path = dbus_message_get_path (message);
|
2010-12-03 13:15:27 +00:00
|
|
|
|
2009-11-12 00:22:55 +00:00
|
|
|
- g_debug ("GsmDBusClient: obj_path=%s interface=%s method=%s",
|
|
|
|
- dbus_message_get_path (message),
|
|
|
|
- dbus_message_get_interface (message),
|
|
|
|
- dbus_message_get_member (message));
|
2010-10-26 17:20:27 +00:00
|
|
|
+ if (path != NULL)
|
|
|
|
+ g_debug ("GsmDBusClient: obj_path=%s interface=%s method=%s",
|
|
|
|
+ dbus_message_get_path (message),
|
|
|
|
+ dbus_message_get_interface (message),
|
|
|
|
+ dbus_message_get_member (message));
|
2010-12-03 13:15:27 +00:00
|
|
|
|
2009-11-12 00:22:55 +00:00
|
|
|
if (dbus_message_is_method_call (message, SM_DBUS_CLIENT_PRIVATE_INTERFACE, "EndSessionResponse")) {
|
2011-04-06 18:33:03 +00:00
|
|
|
g_assert (gsm_client_peek_id (GSM_CLIENT (client)) != NULL);
|