diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-03-22 15:10:36 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-03-22 15:10:36 +0000 |
commit | ad4a54811895edb0ca6c9fe09593e0be5d66d984 (patch) | |
tree | a2e3ea6fe9ef11cb2f94124c4ec35a1c897eb9a5 /hcid/dbus-common.c | |
parent | 41e3ea17c0017dd1b238adaf69d75433ebdc9810 (diff) |
Don't try to unregister non hciX objects
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 38e11665..37815c61 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -313,6 +313,9 @@ void hcid_dbus_exit(void) for (i = 0; children[i]; i++) { char dev_path[MAX_PATH_LENGTH]; + if (children[i][0] != 'h') + continue; + snprintf(dev_path, sizeof(dev_path), "%s/%s", BASE_PATH, children[i]); |