diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-01 10:19:46 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-01 11:59:51 -0300 |
commit | afcee413d531f8ce075770f22772f810a3bb2673 (patch) | |
tree | 545ddef4c28cd0f1ac2345fc397af9505ec2a988 /src | |
parent | 641f45806eec9a23a67f6f79368ed3d70a4f4d98 (diff) | |
download | bluez-afcee413d531f8ce075770f22772f810a3bb2673.tar.gz |
Fix pattern matching logic on Manager.FindAdapter.
Missing else if where causing dev_id to be overwrite in case of "any" or
"00:00:00:00:00:00" patterns.
Diffstat (limited to 'src')
-rw-r--r-- | src/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index a4883643..4ba016d9 100644 --- a/src/manager.c +++ b/src/manager.c @@ -196,7 +196,7 @@ static DBusMessage *find_adapter(DBusConnection *conn, if (path != NULL) goto done; dev_id = -1; - } if (!strncmp(pattern, "hci", 3) && strlen(pattern) >= 4) + } else if (!strncmp(pattern, "hci", 3) && strlen(pattern) >= 4) dev_id = atoi(pattern + 3); else dev_id = find_by_address(pattern); |