fix-unused-but-set-variable.patch 1002 B

12345678910111213141516171819202122232425262728
  1. --- unique/dbus/uniquebackend-dbus.c.orig 2011-07-06 10:30:49.712128019 +0100
  2. +++ unique/dbus/uniquebackend-dbus.c 2011-07-06 10:32:11.026127998 +0100
  3. @@ -84,7 +84,6 @@ unique_backend_dbus_register_proxy (Uniq
  4. static gboolean
  5. unique_backend_dbus_request_name (UniqueBackend *backend)
  6. {
  7. - UniqueBackendDBus *backend_dbus;
  8. const gchar *name;
  9. DBusGConnection *connection;
  10. DBusGProxy *proxy;
  11. @@ -97,8 +96,6 @@ unique_backend_dbus_request_name (Unique
  12. if (!connection)
  13. return FALSE;
  14. - backend_dbus = UNIQUE_BACKEND_DBUS (backend);
  15. -
  16. retval = TRUE;
  17. name = unique_backend_get_name (backend);
  18. g_assert (name != NULL);
  19. @@ -207,7 +204,7 @@ unique_backend_dbus_send_message (Unique
  20. cmd, data, time_,
  21. &resp,
  22. &error);
  23. - if (error)
  24. + if (!res && error)
  25. {
  26. g_warning ("Error while sending message: %s", error->message);
  27. g_error_free (error);