23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
$OpenBSD: patch-gnome-session_gsm-dbus-client_c,v 1.5 2011/09/12 07:28:54 jasper Exp $
|
|
|
|
dbus_message_get_path() can return NULL
|
|
|
|
--- 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
|
|
|
|
path = dbus_message_get_path (message);
|
|
|
|
- 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));
|
|
+ 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));
|
|
|
|
if (dbus_message_is_method_call (message, SM_DBUS_CLIENT_PRIVATE_INTERFACE, "EndSessionResponse")) {
|
|
g_assert (gsm_client_peek_id (GSM_CLIENT (client)) != NULL);
|