Parent: c6e0cd59c4f79f26f356ca02515c2d056111fde8
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-09-30 21:16:41
Tree: dea759ded2b693f493834646007b2c1b2b17c17c
lib: Fix use of uninitialized variable in sdp_set_profile_descs Error path on default case was not breaking loop. To keep error handling similar all error path were converted to use goto. This fix following: target C: libbluetooth <= external/bluetooth/bluez/android/../lib/sdp.c lib/sdp.c: In function 'sdp_set_profile_descs': lib/sdp.c:487:10: warning: 'values[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] lib/sdp.c:2562:19: note: 'values[0]' was declared here lib/sdp.c:545:11: warning: 'dtds[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] lib/sdp.c:2562:9: note: 'dtds[0]' was declared here
Diffstat
| M | lib/sdp.c | | | 15 | ++++++++- - - - - - - |
1 files changed, 8 insertions(+), 7 deletions(-)