[gnome-bluetooth] lib: Fix lookup of device type and icon that regressed in code cleanups
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix lookup of device type and icon that regressed in code cleanups
- Date: Thu, 23 Nov 2017 12:41:51 +0000 (UTC)
commit bbfd6d2df815ea1d080bb66df19baca49b57f922
Author: Benjamin Berg <bberg redhat com>
Date: Thu Nov 23 13:33:48 2017 +0100
lib: Fix lookup of device type and icon that regressed in code cleanups
The code cleanup patch 1b955ae (lib: Unify resolving of device type and
icon) introduced calls to g_return_if_fail() which were negated causing
the device_resolve_type_and_icon() function to always fail.
lib/bluetooth-client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 69d332e..f8cf080 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -290,8 +290,8 @@ icon_override (const char *bdaddr,
static void
device_resolve_type_and_icon (Device1 *device, BluetoothType *type, const char **icon)
{
- g_return_if_fail(!type);
- g_return_if_fail(!icon);
+ g_return_if_fail (type);
+ g_return_if_fail (icon);
*type = bluetooth_appearance_to_type (device1_get_appearance (device));
if (*type == 0 || *type == BLUETOOTH_TYPE_ANY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]