]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use ast_strlen_zero to see if the language and/or context argument is not present...
authorJoshua Colp <jcolp@digium.com>
Mon, 26 Feb 2007 17:09:53 +0000 (17:09 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 26 Feb 2007 17:09:53 +0000 (17:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@56805 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 9e97f12936f675e62f522abaf074b3c20589cfb8..a2ede517557016336dc2be0d5ae3f0ea208327b8 100644 (file)
@@ -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) {