diff options
| author | Paolo Bonzini | 2015-10-19 16:08:40 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2015-11-06 13:42:38 +0100 |
| commit | 374ec0669a1aa3affac7850a16c6cad18221c439 (patch) | |
| tree | c561a1c89a00cb8c4b43ba8af9a1fc65dcba32f8 /ui/keymaps.c | |
| parent | hw/dma/pxa2xx: Remove superfluous memset (diff) | |
| download | qemu-374ec0669a1aa3affac7850a16c6cad18221c439.tar.gz qemu-374ec0669a1aa3affac7850a16c6cad18221c439.tar.xz qemu-374ec0669a1aa3affac7850a16c6cad18221c439.zip | |
bt: fix use of uninitialized variable seqlen
sdp_svc_match, sdp_attr_match and sdp_svc_attr_match read the last
argument. The only sensible way to change the code is to make that last
argument "len" instead of "seqlen" which is the length of a subsequence
in the previous "if" branch.
To make the structure of the code clearer, use "else" instead of
"else if".
Reported by Coverity.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui/keymaps.c')
0 files changed, 0 insertions, 0 deletions
