Merged revisions 7986 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7986 | russell | 2006-01-11 14:08:53 -0500 (Wed, 11 Jan 2006) | 2 lines move variable to correct scope (issue #6197) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7987 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1e9f9a2127
commit
15ce8e0e1e
|
@ -1687,6 +1687,7 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
|
|||
char agent_goodbye[AST_MAX_FILENAME_LEN];
|
||||
int update_cdr = updatecdr;
|
||||
char *filename = "agent-loginok";
|
||||
char tmpchan[AST_MAX_BUF] = "";
|
||||
|
||||
LOCAL_USER_ADD(u);
|
||||
|
||||
|
@ -1817,7 +1818,6 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
|
|||
snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
|
||||
|
||||
if (callbackmode) {
|
||||
char tmpchan[AST_MAX_BUF] = "";
|
||||
int pos = 0;
|
||||
/* Retrieve login chan */
|
||||
for (;;) {
|
||||
|
|
Reference in New Issue