fix-unused-but-set-variable.patch 1.1 KB

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