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:
0c94e8d
)
monitor: Fix use of uninitialized variable
author
Szymon Janc
<szymon.janc@codecoup.pl>
Sat, 21 Nov 2015 20:09:03 +0000
(21:09 +0100)
committer
Szymon Janc
<szymon.janc@codecoup.pl>
Tue, 24 Nov 2015 19:57:05 +0000
(20:57 +0100)
subevent code was never set in vendor_evt() resulting in printing
random stack data as subevent opcode in print_subevent().
monitor/packet.c
patch
|
blob
|
history
diff --git
a/monitor/packet.c
b/monitor/packet.c
index
4c18cb2
..
70bd153
100644
(file)
--- a/
monitor/packet.c
+++ b/
monitor/packet.c
@@
-8471,6
+8471,7
@@
static void vendor_evt(const void *data, uint8_t size)
vendor_data.str = vendor_str;
} else
vendor_data.str = vnd->str;
+ vendor_data.subevent = subevent;
vendor_data.func = vnd->evt_func;
vendor_data.size = vnd->evt_size;
vendor_data.fixed = vnd->evt_fixed;