[svn-commits] rizzo: trunk r46104 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Oct 23 23:52:16 MST 2006


Author: rizzo
Date: Tue Oct 24 01:52:15 2006
New Revision: 46104

URL: http://svn.digium.com/view/asterisk?rev=46104&view=rev
Log:
correct fix for the bug i previously introduced - the strings
are meant to be always initialized, independently from their content.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=46104&r1=46103&r2=46104&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Oct 24 01:52:15 2006
@@ -2254,9 +2254,9 @@
 	int error = 0;
 
 	/* init field as required */
-	if (pass && *pass)
+	if (pass)
 		*pass = "";
-	if (port && *port)
+	if (port)
 		*port = "";
 	name = strsep(&uri, ";");	/* remove options */
 	if (scheme) {



More information about the svn-commits mailing list