aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog2
-rwxr-xr-xapps/app_disa.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index fc13a76c5..aa1501b23 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}
}