Browse Source

core: parser/sdp - init pf variable to avoid compile time warnings

Daniel-Constantin Mierla 8 năm trước cách đây
mục cha
commit
d7871cd82e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      parser/sdp/sdp.c

+ 1 - 0
parser/sdp/sdp.c

@@ -375,6 +375,7 @@ static int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_
 	 * - shorcut useful for multi-part bodies and sdp operations
 	 * - shorcut useful for multi-part bodies and sdp operations
 	 */
 	 */
 	_sdp->text = *sdp_body;
 	_sdp->text = *sdp_body;
+	pf = AF_INET;
 
 
 	/*
 	/*
 	 * Parsing of SDP body.
 	 * Parsing of SDP body.