summaryrefslogtreecommitdiff
path: root/blockjob.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-10-19 16:08:40 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2015-11-06 15:42:38 +0300
commit374ec0669a1aa3affac7850a16c6cad18221c439 (patch)
treec561a1c89a00cb8c4b43ba8af9a1fc65dcba32f8 /blockjob.c
parent1a13b27273cdc4f6fd18bc1e83950d47c6b5928b (diff)
downloadqemu-374ec0669a1aa3affac7850a16c6cad18221c439.tar.gz
qemu-374ec0669a1aa3affac7850a16c6cad18221c439.tar.bz2
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 'blockjob.c')
0 files changed, 0 insertions, 0 deletions