summaryrefslogtreecommitdiff
path: root/profiles/alert
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-04-29 16:27:14 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-29 16:27:14 +0300
commiteb9bc1dc4b1bbb50185469b80fcad3dee659e7bf (patch)
treecc84f66b55f7386531b1551ab9da20444c2f47a1 /profiles/alert
parent207852555bce232f09235c9e96fe71e38e4217c5 (diff)
downloadbluez-eb9bc1dc4b1bbb50185469b80fcad3dee659e7bf.tar.gz
alert: Fix btd_device_get_storage_path failure handling
Diffstat (limited to 'profiles/alert')
-rw-r--r--profiles/alert/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index 4536c817f..58c8b03a5 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);