Mercurial > pidgin.yaz
diff libpurple/dbus-server.c @ 29239:02bc1e883f05
merged with im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 06 Jan 2010 22:51:29 +0900 |
parents | 5819bf02659e |
children | 9f6b8e5998ec |
line wrap: on
line diff
--- a/libpurple/dbus-server.c Fri Dec 25 19:25:22 2009 +0900 +++ b/libpurple/dbus-server.c Wed Jan 06 22:51:29 2010 +0900 @@ -601,7 +601,6 @@ { static DBusObjectPathVTable vtable = {NULL, &purple_dbus_dispatch, NULL, NULL, NULL, NULL}; DBusError error; - int result; dbus_error_init(&error); purple_dbus_connection = dbus_bus_get(DBUS_BUS_STARTER, &error); @@ -625,16 +624,15 @@ return; } - dbus_request_name_reply = - result = dbus_bus_request_name(purple_dbus_connection, + dbus_request_name_reply = dbus_bus_request_name(purple_dbus_connection, DBUS_SERVICE_PURPLE, 0, &error); if (dbus_error_is_set(&error)) { dbus_connection_unref(purple_dbus_connection); - dbus_error_free(&error); purple_dbus_connection = NULL; init_error = g_strdup_printf(N_("Failed to get serv name: %s"), error.name); + dbus_error_free(&error); return; }