[Freeswitch-svn] [commit] r2979 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Thu Oct 5 10:29:54 EDT 2006


Author: mikej
Date: Thu Oct  5 10:29:54 2006
New Revision: 2979

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
initialize some vars that might not get initialized in some codepaths.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Oct  5 10:29:54 2006
@@ -2231,7 +2231,7 @@
 
 	if (session) {
 		private_object_t *tech_pvt = NULL;
-		char *exten;
+		char *exten = NULL;
 
 		tech_pvt = switch_core_session_get_private(session);
 		from = sip->sip_from;
@@ -2253,7 +2253,7 @@
 
 				if ((rep = strchr(refer_to->r_url->url_headers, '='))) {
 					switch_channel_t *channel_a = NULL, *channel_b = NULL;
-					char *br_a, *br_b;
+					char *br_a = NULL, *br_b = NULL;
 					char *buf;
 					rep++;
 



More information about the Freeswitch-svn mailing list