From: Joshua Colp Date: Mon, 26 Feb 2007 17:09:53 +0000 (+0000) Subject: Use ast_strlen_zero to see if the language and/or context argument is not present... X-Git-Tag: 1.4.1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51fc74da593e1ea1929a09af5247659d75f8eb16;p=thirdparty%2Fasterisk.git 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/branches/1.4@56805 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 9e97f12936..a2ede51755 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) {