[gvfs] Initialize the DBus error
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs] Initialize the DBus error
- Date: Mon, 20 Jul 2009 14:49:26 +0000 (UTC)
commit df28b6e600d79eafca4e75049cb81427086178d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jul 20 16:48:18 2009 +0200
Initialize the DBus error
Initialize the DBus error structure before calling
dbus_bus_request_name().
Fix bug #589015, patch by Patryk Zawadzki.
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 93e92a4..d7388ad 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]