From 91c584832a6703fc1435922117bc0e9f6d9b1c1c Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 28 Jan 2007 20:31:13 +0000 Subject: Fix error condition check. 2007-01-28 Christian Persch * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus): Fix error condition check. svn path=/trunk/; revision=6862 --- ChangeLog | 6 ++++++ src/ephy-dbus.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6582b3c69..1a8599d4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-01-28 Christian Persch + + * src/ephy-dbus.c: (ephy_dbus_connect_to_session_bus): + + Fix error condition check. + 2007-01-28 Christian Persch * data/mime-types-permissions.xml: diff --git a/src/ephy-dbus.c b/src/ephy-dbus.c index c365d02d1..9299bb2dd 100644 --- a/src/ephy-dbus.c +++ b/src/ephy-dbus.c @@ -245,7 +245,7 @@ ephy_dbus_connect_to_session_bus (EphyDbus *ephy_dbus, priv->session_bus = dbus_g_bus_get (DBUS_BUS_SESSION, error); if (priv->session_bus == NULL) { - g_warning("Unable to connect to session bus: %s", error ? (*error)->message : ""); + g_warning("Unable to connect to session bus: %s", error && *error ? (*error)->message : ""); return FALSE; } -- cgit v1.2.3