diff options
author | Joshua Colp <jcolp@digium.com> | 2007-02-26 17:12:18 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-02-26 17:12:18 +0000 |
commit | 9577a1c65ad560e32e728b845326e2b770234bee (patch) | |
tree | 7ad16c802ef8f8dc4bda81c41f8264698e078657 | |
parent | 82179d1202d8bc74c914dee672d47c23e39d0639 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@56811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index e31d842f0..4ddabf07f 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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) { |