Diff between 207852555bce232f09235c9e96fe71e38e4217c5 and eb9bc1dc4b1bbb50185469b80fcad3dee659e7bf

Changed Files

File Additions Deletions Status
profiles/alert/server.c +4 -0 modified

Full Patch

diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index 4536c81..58c8b03 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
@@ -334,6 +334,10 @@ static gboolean is_notifiable_device(struct btd_device *device, uint16_t ccc)
 	sprintf(handle, "%hu", ccc);
 
 	filename = btd_device_get_storage_path(device, "ccc");
+	if (!filename) {
+		warn("Unable to get ccc storage path for device");
+		return FALSE;
+	}
 
 	key_file = g_key_file_new();
 	g_key_file_load_from_file(key_file, filename, 0, NULL);