Diff between eff66b3ebbd72cf2d8732a476a79745c905c6641 and 5e72074c9c5b12ce76995050842d51cc2e7c54ad

Changed Files

File Additions Deletions Status
lib/sdp.c +6 -3 modified

Full Patch

diff --git a/lib/sdp.c b/lib/sdp.c
index 57abfd8..3c45ac8 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -1864,25 +1864,28 @@ static int sdp_get_proto_descs(uint16_t attr_id, const sdp_record_t *rec,
 							sdp_list_t **pap)
 {
 	sdp_data_t *pdlist, *curr;
-	sdp_list_t *ap = 0;
+	sdp_list_t *ap = NULL;
 
 	pdlist = sdp_data_get(rec, attr_id);
 	if (pdlist == NULL) {
 		errno = ENODATA;
 		return -1;
 	}
-	SDPDBG("AP type : 0%x\n", pdlist->dtd);
+
+	SDPDBG("Attribute value type: 0x%02x\n", pdlist->dtd);
 
 	if (attr_id == SDP_ATTR_ADD_PROTO_DESC_LIST)
 		pdlist = pdlist->val.dataseq;
 
 	for (; pdlist; pdlist = pdlist->next) {
-		sdp_list_t *pds = 0;
+		sdp_list_t *pds = NULL;
 		for (curr = pdlist->val.dataseq; curr; curr = curr->next)
 			pds = sdp_list_append(pds, curr->val.dataseq);
 		ap = sdp_list_append(ap, pds);
 	}
+
 	*pap = ap;
+
 	return 0;
 }