diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2015-11-21 21:09:03 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2015-11-24 20:57:05 +0100 |
commit | 0e18e5e482ece1f1ecb8d04f500a45b540e40a25 (patch) | |
tree | 2c5140739018ccb6c5164e97dc430e5b114c296f | |
parent | 0c94e8d072daec245ab99b32d87167660cc36ada (diff) | |
download | bluez-0e18e5e482ece1f1ecb8d04f500a45b540e40a25.tar.gz |
monitor: Fix use of uninitialized variable
subevent code was never set in vendor_evt() resulting in printing
random stack data as subevent opcode in print_subevent().
-rw-r--r-- | monitor/packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/packet.c b/monitor/packet.c index 4c18cb21b..70bd15314 100644 --- 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; |