summaryrefslogtreecommitdiff
path: root/plugins/bluetooth.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-30 21:27:22 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-30 21:27:22 +0100
commit627abec2e1c39d15a9a917c14a7923b6ab58cfd1 (patch)
treef86f55045cd8599f54026c8ca997526f59cf0bdd /plugins/bluetooth.c
parent8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb (diff)
downloadconnman-627abec2e1c39d15a9a917c14a7923b6ab58cfd1.tar.gz
connman-627abec2e1c39d15a9a917c14a7923b6ab58cfd1.tar.bz2
connman-627abec2e1c39d15a9a917c14a7923b6ab58cfd1.zip
Check that device name is valid before using it
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r--plugins/bluetooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 1799f770..13f7d928 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -412,7 +412,7 @@ static void adapter_properties(DBusConnection *connection, const char *path,
connman_device_set_path(adapter, path);
- if (g_str_has_prefix(node, "hci") == TRUE) {
+ if (node != NULL && g_str_has_prefix(node, "hci") == TRUE) {
int index;
errno = 0;
index = atoi(node + 3);