Diff between e040109302d841750b767e88c26a48e6f832edf3 and 2762129212f1c4045c2ca3628cb49f42cb024689
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +6 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 77b38e9..f31f2a0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1659,10 +1659,15 @@ static gboolean dev_property_wake_allowed_exist(
static void append_set(void *data, void *user_data)
{
struct sirk_info *info = data;
- const char *path = btd_set_get_path(info->set);
+ const char *path;
DBusMessageIter *iter = user_data;
DBusMessageIter entry, dict;
+ if (!info->set)
+ return;
+
+ path = btd_set_get_path(info->set);
+
dbus_message_iter_open_container(iter, DBUS_TYPE_DICT_ENTRY, NULL,
&entry);