[gvfs] Initialize the DBus error



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]