[svn-commits] branch 1.2 - r7986 /branches/1.2/channels/chan_agent.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Jan 11 13:08:55 CST 2006


Author: russell
Date: Wed Jan 11 13:08:53 2006
New Revision: 7986

URL: http://svn.digium.com/view/asterisk?rev=7986&view=rev
Log:
move variable to correct scope (issue #6197)

Modified:
    branches/1.2/channels/chan_agent.c

Modified: branches/1.2/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_agent.c?rev=7986&r1=7985&r2=7986&view=diff
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Wed Jan 11 13:08:53 2006
@@ -1695,6 +1695,7 @@
 	char agent_goodbye[AST_MAX_FILENAME_LEN];
 	int update_cdr = updatecdr;
 	char *filename = "agent-loginok";
+	char tmpchan[AST_MAX_BUF] = "";
 
 	LOCAL_USER_ADD(u);
 
@@ -1825,7 +1826,6 @@
 					snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
 
 					if (callbackmode) {
-						char tmpchan[AST_MAX_BUF] = "";
 						int pos = 0;
 						/* Retrieve login chan */
 						for (;;) {



More information about the svn-commits mailing list