summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */