[sr-dev] git:master:d7871cd8: core: parser/sdp - init pf variable to avoid compile time warnings

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 1 15:37:49 CET 2016


Module: kamailio
Branch: master
Commit: d7871cd82e22bfe8444e2d150b38565265343223
URL: https://github.com/kamailio/kamailio/commit/d7871cd82e22bfe8444e2d150b38565265343223

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-11-01T15:30:18+01:00

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

---

Modified: parser/sdp/sdp.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d7871cd82e22bfe8444e2d150b38565265343223.diff
Patch: https://github.com/kamailio/kamailio/commit/d7871cd82e22bfe8444e2d150b38565265343223.patch

---

diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c
index 1e53940..e6708d8 100644
--- a/parser/sdp/sdp.c
+++ b/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
 	 */
 	_sdp->text = *sdp_body;
+	pf = AF_INET;
 
 	/*
 	 * Parsing of SDP body.




More information about the sr-dev mailing list