summaryrefslogtreecommitdiffstats
path: root/ui/keymaps.c
diff options
context:
space:
mode:
authorPaolo Bonzini2015-10-19 16:08:40 +0200
committerMichael Tokarev2015-11-06 13:42:38 +0100
commit374ec0669a1aa3affac7850a16c6cad18221c439 (patch)
treec561a1c89a00cb8c4b43ba8af9a1fc65dcba32f8 /ui/keymaps.c
parenthw/dma/pxa2xx: Remove superfluous memset (diff)
downloadqemu-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