[tracker/tracker-0.6] Check error on dbus connection
- From: Ivan Frade <ifrade src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-0.6] Check error on dbus connection
- Date: Mon, 11 May 2009 09:27:19 -0400 (EDT)
commit 7ce8b38b4e6f91935287be1ae5718759c3273104
Author: Ivan Frade <ivan frade nokia com>
Date: Mon May 11 15:32:38 2009 +0300
Check error on dbus connection
Check the GError returned by the DBus connect method, and not only
if connection != NULL.
Fixes NB#115956, Tracker tools core dumps
---
src/libtracker/tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libtracker/tracker.c b/src/libtracker/tracker.c
index 4b2074e..5166a42 100644
--- a/src/libtracker/tracker.c
+++ b/src/libtracker/tracker.c
@@ -262,7 +262,7 @@ tracker_connect (gboolean enable_warnings)
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
- if (connection == NULL) {
+ if (connection == NULL || error != NULL) {
if (enable_warnings) {
g_warning("Unable to connect to dbus: %s\n", error->message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]