From: Kevin P. Fleming Date: Tue, 15 Nov 2005 19:40:08 +0000 (+0000) Subject: correct a small problem with recent commit X-Git-Tag: 1.2.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14758518de6154d8c265f9445703aa14ac591a1;p=thirdparty%2Fasterisk.git correct a small problem with recent commit git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7103 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/ChangeLog b/ChangeLog index fc13a76c57..aa1501b231 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-11-15 Kevin P. Fleming + * 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 2d792df589..2ac124525a 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; } }