diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-07-20 16:48:18 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-07-20 16:48:18 +0200 |
commit | df28b6e600d79eafca4e75049cb81427086178d7 (patch) | |
tree | 8ac13c39928ad9977d8fabaa1cb06ab76da61f66 /metadata/meta-daemon.c | |
parent | ff120f07aa8807b96ba79b2415715205a92db2ae (diff) | |
download | gvfs-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.c | 1 |
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) { |