diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-30 21:27:22 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-30 21:27:22 +0100 |
commit | 627abec2e1c39d15a9a917c14a7923b6ab58cfd1 (patch) | |
tree | f86f55045cd8599f54026c8ca997526f59cf0bdd /plugins/bluetooth.c | |
parent | 8f1eb1a308f2f7f65536b0a0224d1710afd8a1eb (diff) | |
download | connman-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.c | 2 |
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); |