[asterisk-commits] jrose: branch 1.6.2 r313435 - /branches/1.6.2/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 12 13:44:48 CDT 2011


Author: jrose
Date: Tue Apr 12 13:44:44 2011
New Revision: 313435

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=313435
Log:
fixing stupid mistake with putting code before variable declaration

Modified:
    branches/1.6.2/channels/chan_dahdi.c

Modified: branches/1.6.2/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_dahdi.c?view=diff&rev=313435&r1=313434&r2=313435
==============================================================================
--- branches/1.6.2/channels/chan_dahdi.c (original)
+++ branches/1.6.2/channels/chan_dahdi.c Tue Apr 12 13:44:44 2011
@@ -10540,13 +10540,14 @@
 	}
 
 	if (tmp) {
+		int chan_sig = conf->chan.sig;
+
 		/* If there are variables in tmp before it is updated to match the new config, clear them */
 		if (reloading && tmp->vars) {
 			ast_variables_destroy(tmp->vars);
 			tmp->vars = NULL;
 		}
 
-		int chan_sig = conf->chan.sig;
 		if (!here) {
 			if ((channel != CHAN_PSEUDO) && !pri) {
 				int count = 0;




More information about the asterisk-commits mailing list