OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b1df88
)
bt-sdp: Fix an excessive ; and assignment of the wrong variable
author
Andrzej Zaborowski
<balrog@zabor.org>
Thu, 22 Apr 2010 01:55:46 +0000
(
03:55
+0200)
committer
Andrzej Zaborowski
<balrog@zabor.org>
Thu, 22 Apr 2010 01:55:46 +0000
(
03:55
+0200)
Problem-spotted-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andrew Zaborowski <balrogg@gmail.com>
hw/bt-sdp.c
patch
|
blob
|
history
diff --git
a/hw/bt-sdp.c
b/hw/bt-sdp.c
index
b8732d0
..
cc0bf2f
100644
(file)
--- a/
hw/bt-sdp.c
+++ b/
hw/bt-sdp.c
@@
-159,7
+159,7
@@
static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp,
if (len < 3)
return -SDP_INVALID_SYNTAX;
-
end
= (req[0] << 8) | req[1];
+
max
= (req[0] << 8) | req[1];
req += 2;
len -= 2;
@@
-171,7
+171,7
@@
static ssize_t sdp_svc_search(struct bt_l2cap_sdp_state_s *sdp,
} else
start = 0;
- if (len > 1)
;
+ if (len > 1)
return -SDP_INVALID_SYNTAX;
/* Output the results */