Always parse arguments in park_call_exec so that app_args is valid. This prevents a crash when executing Park from the dialplan with no arguments.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159402 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeff Peeler
2008-11-26 03:18:01 +00:00
parent c5e64b2ac4
commit 1abffcee9f

View File

@@ -2892,10 +2892,8 @@ static int park_call_exec(struct ast_channel *chan, void *data)
AST_APP_ARG(options);
);
if (!ast_strlen_zero(data)) {
parse = ast_strdupa(data);
AST_STANDARD_APP_ARGS(app_args, parse);
}
parse = ast_strdupa(data);
AST_STANDARD_APP_ARGS(app_args, parse);
ast_copy_string(orig_exten, chan->exten, sizeof(orig_exten));