23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
$OpenBSD: patch-gnome-session_gsm-dbus-client_c,v 1.4 2011/04/06 18:33:03 ajacoutot Exp $
|
|
|
|
dbus_message_get_path() can return NULL
|
|
|
|
--- gnome-session/gsm-dbus-client.c.orig Tue Feb 9 14:22:01 2010
|
|
+++ gnome-session/gsm-dbus-client.c Wed Apr 6 20:30:07 2011
|
|
@@ -213,10 +213,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);
|