diff options
-rwxr-xr-x | ChangeLog | 2 | ||||
-rwxr-xr-x | apps/app_disa.c | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,7 @@ 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_disa.c (disa_exec): use standard arg parsing routines (issue #5736) diff --git a/apps/app_disa.c b/apps/app_disa.c index 2d792df58..2ac124525 100755 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -169,9 +169,9 @@ static int disa_exec(struct ast_channel *chan, void *data) AST_STANDARD_APP_ARGS(args, tmp); if (ast_strlen_zero(args.context)) - args.context = ast_strdupa("disa"); + args.context = "disa"; if (ast_strlen_zero(args.mailbox)) - args.mailbox = ast_strdupa(""); + 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 (!strcmp(exten,args.passcode)) { if (ast_strlen_zero(args.context)) - args.context = ast_strdupa("disa"); + args.context = "disa"; if (ast_strlen_zero(args.mailbox)) - args.mailbox = ast_strdupa(""); + args.mailbox = ""; break; } } |