Parent: bc1b1717bf93ccddfaed0a680fb17188eafaae1f
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-11-17 16:08:35
Tree: 749901f635a5ec171fa1b7c9829323a7a9066aac
device: Fix possible runtime warning This g_source_remove() doesn't have its argument check for validity which can lead to a runtime warning. bluetoothd[14785]: GLib: g_source_remove: assertion 'tag > 0' failed bluetoothd[14785]: ++++++++ backtrace ++++++++ bluetoothd[14785]: #1 g_logv+0x25d (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50d5a7d] bluetoothd[14785]: #2 g_log+0x8f (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50d5bef] bluetoothd[14785]: #3 g_source_remove+0x24 (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50cd884] bluetoothd[14785]: #4 device_remove+0xfb (src/device.c:4054) [0x4756cb] bluetoothd[14785]: #5 adapter_remove+0x4a (src/adapter.c:5485) [0x45e0ea] bluetoothd[14785]: #6 adapter_cleanup+0x2b (src/adapter.c:8681) [0x466abb] bluetoothd[14785]: #7 main+0x867 (src/main.c:784) [0x40bdc7] bluetoothd[14785]: #8 __libc_start_main+0xe7 (../csu/libc-start.c:340) [0x5d12187] bluetoothd[14785]: #9 _start+0x2a (/home/hadess/Projects/jhbuild/bluez/src/bluetoothd) [0x40c5ca] bluetoothd[14785]: +++++++++++++++++++++++++++
Diffstat
| M | src/device.c | | | 3 | ++- |
1 files changed, 2 insertions(+), 1 deletions(-)