[Freeswitch-svn] [commit] r5238 - freeswitch/trunk/src/mod/applications/mod_esf

Freeswitch SVN mikej at freeswitch.org
Fri Jun 1 01:02:11 EDT 2007


Author: mikej
Date: Fri Jun  1 01:02:11 2007
New Revision: 5238

Modified:
   freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c

Log:
windows build fixes.

Modified: freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	Fri Jun  1 01:02:11 2007
@@ -57,7 +57,7 @@
 {
 	switch_channel_t *channel;
 	switch_socket_t *socket;
-	switch_sockaddr_t *audio_addr, *control_packet_addr;
+	switch_sockaddr_t *audio_addr = NULL, *control_packet_addr;
 	switch_frame_t *read_frame;
 	switch_status_t status;
 	switch_size_t bytes;
@@ -65,7 +65,7 @@
 	switch_codec_t *read_codec;
 	uint32_t flags = 0;
 	const char *err;
-	switch_rtp_t *rtp_session;
+	switch_rtp_t *rtp_session = NULL;
 	switch_port_t rtp_port;
 	char guess_ip[25];
 	ls_how_t ready = SEND_TYPE_UNKNOWN;
@@ -215,7 +215,7 @@
 
  fail:
 
-	if (ready == SEND_TYPE_RTP && switch_rtp_ready(rtp_session)) {
+	if (rtp_session && ready == SEND_TYPE_RTP && switch_rtp_ready(rtp_session)) {
 		switch_rtp_destroy(&rtp_session);
 	}	
 



More information about the Freeswitch-svn mailing list