Fix compilation of chan_agent.c on gcc < 3.0

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-10-24 18:02:32 +00:00
parent 286ea2461d
commit 2486f30a41

View File

@@ -1242,10 +1242,10 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
char *exten = NULL;
int play_announcement = 1;
char agent_goodbye[AST_MAX_FILENAME_LEN];
strcpy(agent_goodbye, agentgoodbye);
int update_cdr = updatecdr;
char *filename = "agent-loginok";
strcpy(agent_goodbye, agentgoodbye);
LOCAL_USER_ADD(u);
/* Parse the arguments XXX Check for failure XXX */