projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1eb1a
)
Check that device name is valid before using it
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Dec 2008 20:27:22 +0000
(21:27 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Dec 2008 20:27:22 +0000
(21:27 +0100)
plugins/bluetooth.c
patch
|
blob
|
history
diff --git
a/plugins/bluetooth.c
b/plugins/bluetooth.c
index
1799f77
..
13f7d92
100644
(file)
--- 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);