diff options
Diffstat (limited to 'apps/app_read.c')
-rw-r--r-- | apps/app_read.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_read.c b/apps/app_read.c index d1e14ed80..f9193571d 100644 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -21,14 +21,14 @@ * \brief Trivial application to read a variable * * \author Mark Spencer <markster@digium.com> - * + * * \ingroup applications */ /*** MODULEINFO <support_level>core</support_level> ***/ - + #include "asterisk.h" #include "asterisk/file.h" @@ -144,13 +144,13 @@ static int read_exec(struct ast_channel *chan, const char *data) AST_APP_ARG(attempts); AST_APP_ARG(timeout); ); - + pbx_builtin_setvar_helper(chan, "READSTATUS", status); if (ast_strlen_zero(data)) { ast_log(LOG_WARNING, "Read requires an argument (variable)\n"); return 0; } - + argcopy = ast_strdupa(data); AST_STANDARD_APP_ARGS(arglist, argcopy); @@ -158,7 +158,7 @@ static int read_exec(struct ast_channel *chan, const char *data) if (!ast_strlen_zero(arglist.options)) { ast_app_parse_options(read_app_options, &flags, NULL, arglist.options); } - + if (!ast_strlen_zero(arglist.attempts)) { tries = atoi(arglist.attempts); if (tries <= 0) |