summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-11-30 18:04:56 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-11-30 18:04:56 +0200
commit0dc1346fb377515e86937b8f734deee69f3af229 (patch)
treef0564846cf2ca4345a7de37419e3327e7b19b3a5 /src/adapter.c
parentbdfb3ebea08a723aeb978d1f0d316294160cbc09 (diff)
Fix uninitialized variable
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 93eb601b..769f4cf6 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -635,6 +635,7 @@ static int set_mode(struct btd_adapter *adapter, uint8_t new_mode)
if (adapter->up && scan_enable == SCAN_DISABLED &&
main_opts.offmode == HCID_OFFMODE_DEVDOWN) {
if (ioctl(dd, HCIDEVDOWN, adapter->dev_id) < 0) {
+ err = errno;
hci_close_dev(dd);
return -err;
}