summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 81d0a4d2..e99cb8e0 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -641,7 +641,7 @@ static int register_service(struct service *service)
/* Make the path valid for D-Bus */
for (i = strlen("/org/bluez/"); obj_path[i]; i++) {
- if (!isalnum(obj_path[i]) || obj_path[i] != '_')
+ if (!isalnum(obj_path[i]))
obj_path[i] = '_';
}