Diff between ff47b46098b0ac944c94bbaeb65dafb435e4e383 and c4be11b700560a14d6bc45901a0ad0950683945d

Changed Files

File Additions Deletions Status
tools/parser/sdp.c +3 -3 modified

Full Patch

diff --git a/tools/parser/sdp.c b/tools/parser/sdp.c
index 817d121..0a1258e 100644
--- a/tools/parser/sdp.c
+++ b/tools/parser/sdp.c
@@ -408,7 +408,7 @@ static inline void print_de(int level, struct frame *frm, int *split, uint16_t *
 
 static inline void print_srv_srch_pat(int level, struct frame *frm)
 {
-	int len, n1, n2;
+	int len, n1 = 0, n2 = 0;
 
 	p_indent(level, frm);
 	printf("pat");
@@ -434,7 +434,7 @@ static inline void print_attr_id_list(int level, struct frame *frm)
 {
 	uint16_t attr_id;
 	uint32_t attr_id_range;
-	int len, n1, n2;
+	int len, n1 = 0, n2 = 0;
 
 	p_indent(level, frm);
 	printf("aid(s)");
@@ -514,7 +514,7 @@ static inline void print_attr_list(int level, struct frame *frm)
 
 static inline void print_attr_lists(int level, struct frame *frm)
 {
-	int n, cnt = 0;
+	int n = 0, cnt = 0;
 	int count = frm->len;
 
 	if (parse_de_hdr(frm, &n) == SDP_DE_SEQ) {