[asterisk-commits] file: branch 1.4 r56805 - /branches/1.4/main/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Feb 26 10:09:54 MST 2007


Author: file
Date: Mon Feb 26 11:09:53 2007
New Revision: 56805

URL: http://svn.digium.com/view/asterisk?view=rev&rev=56805
Log:
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)

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=56805&r1=56804&r2=56805
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Mon Feb 26 11:09:53 2007
@@ -5612,10 +5612,10 @@
 
 	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) {



More information about the asterisk-commits mailing list