dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 56805 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r56805 | file | 2007-02-26 12:09:53 -0500 (Mon, 26 Feb 2007) | 2 lines

Use ast_strlen_zero to see if the language and/or context argument is not present for Background instead of just checking if it is NULL. (issue #9141 reported by mjagdis)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56811 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2007-02-26 17:12:18 +00:00
parent 4d54055e4a
commit 3f66df66aa
1 changed files with 2 additions and 2 deletions

View File

@ -5574,10 +5574,10 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
AST_STANDARD_APP_ARGS(args, parse);
if (!args.lang)
if (ast_strlen_zero(args.lang))
args.lang = (char *)chan->language; /* XXX this is const */
if (!args.context)
if (ast_strlen_zero(args.context))
args.context = chan->context;
if (args.options) {