--- test/agent.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/agent.c b/test/agent.c index b256f52..334618e 100644 --- a/test/agent.c +++ b/test/agent.c @@ -281,9 +281,10 @@ static int unregister_agent(DBusConnection *conn, const char *device_path, static char *get_device(const char *device) { - char *path; + char *path = "/org/bluez/hci0"; - path = strdup("/org/bluez/hci0"); + if (device) + path = strdup(device); return path; } -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html