summaryrefslogtreecommitdiff
path: root/metadata/meta-daemon.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-07-20 16:48:18 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2009-07-20 16:48:18 +0200
commitdf28b6e600d79eafca4e75049cb81427086178d7 (patch)
tree8ac13c39928ad9977d8fabaa1cb06ab76da61f66 /metadata/meta-daemon.c
parentff120f07aa8807b96ba79b2415715205a92db2ae (diff)
downloadgvfs-df28b6e600d79eafca4e75049cb81427086178d7.tar.gz
Initialize the DBus error
Initialize the DBus error structure before calling dbus_bus_request_name(). Fix bug #589015, patch by Patryk Zawadzki.
Diffstat (limited to 'metadata/meta-daemon.c')
-rw-r--r--metadata/meta-daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/metadata/meta-daemon.c b/metadata/meta-daemon.c
index 93e92a4c..d7388adf 100644
--- a/metadata/meta-daemon.c
+++ b/metadata/meta-daemon.c
@@ -479,6 +479,7 @@ register_name (DBusConnection *conn,
if (replace)
flags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
+ dbus_error_init (&error);
ret = dbus_bus_request_name (conn, G_VFS_DBUS_METADATA_NAME, flags, &error);
if (ret == -1)
{