[svn-commits] murf: trunk r120828 - /trunk/main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 5 16:34:43 CDT 2008


Author: murf
Date: Thu Jun  5 16:34:42 2008
New Revision: 120828

URL: http://svn.digium.com/view/asterisk?view=rev&rev=120828
Log:
a small fix for a crash that occurs when compiling AEL with global vars

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=120828&r1=120827&r2=120828
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Thu Jun  5 16:34:42 2008
@@ -7901,7 +7901,7 @@
 			pbx_builtin_setvar_helper(chan, pair.name, pair.value);
 			if (strchr(pair.name, ' '))
 				ast_log(LOG_WARNING, "Please avoid unnecessary spaces on variables as it may lead to unexpected results ('%s' set to '%s').\n", pair.name, pair.value);
-		} else if (chan) {
+		} else if (!chan) {
 			ast_log(LOG_WARNING, "MSet: ignoring entry '%s' with no '='\n", pair.name);
 		} else {
 			ast_log(LOG_WARNING, "MSet: ignoring entry '%s' with no '=' (in %s@%s:%d\n", pair.name, chan->exten, chan->context, chan->priority);




More information about the svn-commits mailing list