diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-11-22 06:17:12 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-11-22 06:17:12 +0000 |
commit | 6cb273616dd0ff36eb5320387db84346bd0c478e (patch) | |
tree | ff1d9176733094cb797a9899dd0abe77061aad4a /common | |
parent | 214cc18ef97fcaa0a4c3746e183caf5820bc811b (diff) |
Fix UUID16 parsing
Diffstat (limited to 'common')
-rw-r--r-- | common/sdp-xml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/sdp-xml.c b/common/sdp-xml.c index 8b290b88..9fe5b087 100644 --- a/common/sdp-xml.c +++ b/common/sdp-xml.c @@ -445,7 +445,7 @@ sdp_data_t *sdp_xml_parse_uuid(const char *data) int len; char *endptr; uint32_t val; - uint16_t val2 = val; + uint16_t val2; len = strlen(data); @@ -461,6 +461,8 @@ sdp_data_t *sdp_xml_parse_uuid(const char *data) if (val > USHRT_MAX) return sdp_data_alloc(SDP_UUID32, &val); + val2 = val; + return sdp_data_alloc(SDP_UUID16, &val2); /* Should never get here */ |