From 3a4be695834ccfac110c548cf870dc729c00f44c Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 9 May 2011 14:55:44 -0300 Subject: [PATCH] Fix a crash when creating a device from storage The list "services" is just a list of the object paths of the registered services that a device has. When we want to store the primary services information we need to store the "primaries" list, that contain all the primary services information. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index b0a6542c2..9b8591bda 100644 --- a/src/device.c +++ b/src/device.c @@ -1567,7 +1567,7 @@ static void store_services(struct btd_device *device) { struct btd_adapter *adapter = device->adapter; bdaddr_t dba, sba; - char *str = primary_list_to_string(device->services); + char *str = primary_list_to_string(device->primaries); adapter_get_address(adapter, &sba); device_get_address(device, &dba); -- 2.47.3