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

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

unique 1.1.6-4

  • unique/dbus/uniquebackend-dbus.c

    diff -urNp libunique-1.1.6.old/unique/dbus/uniquebackend-dbus.c libunique-1.1.6/unique/dbus/uniquebackend-dbus.c
    old new unique_backend_dbus_register_proxy (Uniq 
    8484static gboolean 
    8585unique_backend_dbus_request_name (UniqueBackend *backend) 
    8686{ 
    87   UniqueBackendDBus *backend_dbus; 
    8887  const gchar *name; 
    8988  DBusGConnection *connection; 
    9089  DBusGProxy *proxy; 
    unique_backend_dbus_request_name (Unique 
    9796  if (!connection) 
    9897    return FALSE; 
    9998 
    100   backend_dbus = UNIQUE_BACKEND_DBUS (backend); 
    101  
    10299  retval = TRUE; 
    103100  name = unique_backend_get_name (backend); 
    104101  g_assert (name != NULL); 
    unique_backend_dbus_send_message (Unique 
    207204                                        cmd, data, time_, 
    208205                                        &resp, 
    209206                                        &error); 
    210   if (error) 
     207  if (!res && error) 
    211208    { 
    212209      g_warning ("Error while sending message: %s", error->message); 
    213210      g_error_free (error); 
Note: See TracBrowser for help on using the repository browser.