OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cc142
)
service: Remove extra memory copying from cancel_authorization
author
Szymon Janc
<szymon.janc@tieto.com>
Tue, 2 Oct 2012 09:33:11 +0000
(11:33 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 2 Oct 2012 09:49:28 +0000
(12:49 +0300)
src is never read before being overwritten few lines below.
plugins/service.c
patch
|
blob
|
history
diff --git
a/plugins/service.c
b/plugins/service.c
index
45886ac
..
d586d79
100644
(file)
--- a/
plugins/service.c
+++ b/
plugins/service.c
@@
-662,11
+662,6
@@
static DBusMessage *cancel_authorization(DBusConnection *conn,
if (auth == NULL)
return btd_error_does_not_exist(msg);
- if (serv_adapter->adapter)
- adapter_get_address(serv_adapter->adapter, &src);
- else
- bacpy(&src, BDADDR_ANY);
-
btd_cancel_authorization(auth->id);
reply = btd_error_not_authorized(auth->msg);