source: projects/specs/trunk/u/unique/fix-unused-but-set-variable.patch @ 10830

Revision 10830, 1.1 KB checked in by iwaim, 7 years ago (diff)

unique 1.1.6-4

RevLine 
[10830]1diff -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 
16-  backend_dbus = UNIQUE_BACKEND_DBUS (backend);
17-
18   retval = TRUE;
19   name = unique_backend_get_name (backend);
20   g_assert (name != NULL);
21@@ -207,7 +204,7 @@ unique_backend_dbus_send_message (Unique
22                                         cmd, data, time_,
23                                         &resp,
24                                         &error);
25-  if (error)
26+  if (!res && error)
27     {
28       g_warning ("Error while sending message: %s", error->message);
29       g_error_free (error);
Note: See TracBrowser for help on using the repository browser.