mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
correct a small problem with recent commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2005-11-15 Kevin P. Fleming <kpfleming@limerick.digium.com>
|
2005-11-15 Kevin P. Fleming <kpfleming@limerick.digium.com>
|
||||||
|
|
||||||
|
* apps/app_disa.c (disa_exec): don't duplicate constant strings when not needed
|
||||||
|
|
||||||
* apps/app_playback.c (playback_exec): use correct logic tests for options (issue #5752)
|
* apps/app_playback.c (playback_exec): use correct logic tests for options (issue #5752)
|
||||||
|
|
||||||
* apps/app_disa.c (disa_exec): use standard arg parsing routines (issue #5736)
|
* apps/app_disa.c (disa_exec): use standard arg parsing routines (issue #5736)
|
||||||
|
@@ -169,9 +169,9 @@ static int disa_exec(struct ast_channel *chan, void *data)
|
|||||||
AST_STANDARD_APP_ARGS(args, tmp);
|
AST_STANDARD_APP_ARGS(args, tmp);
|
||||||
|
|
||||||
if (ast_strlen_zero(args.context))
|
if (ast_strlen_zero(args.context))
|
||||||
args.context = ast_strdupa("disa");
|
args.context = "disa";
|
||||||
if (ast_strlen_zero(args.mailbox))
|
if (ast_strlen_zero(args.mailbox))
|
||||||
args.mailbox = ast_strdupa("");
|
args.mailbox = "";
|
||||||
|
|
||||||
ast_log(LOG_DEBUG, "Mailbox: %s\n",args.mailbox);
|
ast_log(LOG_DEBUG, "Mailbox: %s\n",args.mailbox);
|
||||||
|
|
||||||
@@ -278,9 +278,9 @@ static int disa_exec(struct ast_channel *chan, void *data)
|
|||||||
/* if we got it */
|
/* if we got it */
|
||||||
if (!strcmp(exten,args.passcode)) {
|
if (!strcmp(exten,args.passcode)) {
|
||||||
if (ast_strlen_zero(args.context))
|
if (ast_strlen_zero(args.context))
|
||||||
args.context = ast_strdupa("disa");
|
args.context = "disa";
|
||||||
if (ast_strlen_zero(args.mailbox))
|
if (ast_strlen_zero(args.mailbox))
|
||||||
args.mailbox = ast_strdupa("");
|
args.mailbox = "";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user