summaryrefslogtreecommitdiffstats
path: root/common/sdp-xml.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:17:12 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-22 06:17:12 +0000
commit6cb273616dd0ff36eb5320387db84346bd0c478e (patch)
treeff1d9176733094cb797a9899dd0abe77061aad4a /common/sdp-xml.c
parent214cc18ef97fcaa0a4c3746e183caf5820bc811b (diff)
Fix UUID16 parsing
Diffstat (limited to 'common/sdp-xml.c')
-rw-r--r--common/sdp-xml.c4
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 */