[svn-commits] trunk r21235 - /trunk/pbx.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Apr 18 16:24:03 MST 2006


Author: kpfleming
Date: Tue Apr 18 18:24:02 2006
New Revision: 21235

URL: http://svn.digium.com/view/asterisk?rev=21235&view=rev
Log:
don't ignore left-curly-braces when searching for the end of a variable/function reference; match them up with right-curly-braces so we choose the proper brace to end the reference (will still fail to parse properly if the reference contains unbalanced braces)

Modified:
    trunk/pbx.c

Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=21235&r1=21234&r2=21235&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Tue Apr 18 18:24:02 2006
@@ -1343,9 +1343,11 @@
 			needsub = 0;
 
 			/* Find the end of it */
-			while(brackets && *vare) {
+			while (brackets && *vare) {
 				if ((vare[0] == '$') && (vare[1] == '{')) {
 					needsub++;
+					brackets++;
+				} else if (vare[0] == '{') {
 					brackets++;
 				} else if (vare[0] == '}') {
 					brackets--;



More information about the svn-commits mailing list