mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
move variable to correct scope (issue #6197)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7986 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1695,6 +1695,7 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
|
|||||||
char agent_goodbye[AST_MAX_FILENAME_LEN];
|
char agent_goodbye[AST_MAX_FILENAME_LEN];
|
||||||
int update_cdr = updatecdr;
|
int update_cdr = updatecdr;
|
||||||
char *filename = "agent-loginok";
|
char *filename = "agent-loginok";
|
||||||
|
char tmpchan[AST_MAX_BUF] = "";
|
||||||
|
|
||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
@@ -1825,7 +1826,6 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
|
|||||||
snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
|
snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
|
||||||
|
|
||||||
if (callbackmode) {
|
if (callbackmode) {
|
||||||
char tmpchan[AST_MAX_BUF] = "";
|
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
/* Retrieve login chan */
|
/* Retrieve login chan */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Reference in New Issue
Block a user