aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 17:09:53 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-26 17:09:53 +0000
commitf4d9a0df2b63dccb70141886551b0197982d4bb6 (patch)
treec9e91faafc3a1e19930d97ffabb133a7505ea145
parentdb3a508c8e67375399c7d2aa58212431b3f71cdd (diff)
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/branches/1.4@56805 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 9e97f1293..a2ede5175 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5612,10 +5612,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) {