mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
Opaquify char * and char[] in ast_channel
Review: https://reviewboard.asterisk.org/r/1733/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -129,7 +129,7 @@ static int readexten_exec(struct ast_channel *chan, const char *data)
|
||||
AST_APP_ARG(options);
|
||||
AST_APP_ARG(timeout);
|
||||
);
|
||||
|
||||
|
||||
if (ast_strlen_zero(data)) {
|
||||
ast_log(LOG_WARNING, "ReadExten requires at least one argument\n");
|
||||
pbx_builtin_setvar_helper(chan, "READEXTENSTATUS", "ERROR");
|
||||
@@ -145,14 +145,17 @@ static int readexten_exec(struct ast_channel *chan, const char *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(arglist.filename))
|
||||
if (ast_strlen_zero(arglist.filename)) {
|
||||
arglist.filename = NULL;
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(arglist.context))
|
||||
arglist.context = chan->context;
|
||||
if (ast_strlen_zero(arglist.context)) {
|
||||
arglist.context = ast_strdupa(ast_channel_context(chan));
|
||||
}
|
||||
|
||||
if (!ast_strlen_zero(arglist.options))
|
||||
if (!ast_strlen_zero(arglist.options)) {
|
||||
ast_app_parse_options(readexten_app_options, &flags, NULL, arglist.options);
|
||||
}
|
||||
|
||||
if (!ast_strlen_zero(arglist.timeout)) {
|
||||
timeout = atoi(arglist.timeout);
|
||||
|
||||
Reference in New Issue
Block a user