From: Kevin P. Fleming Date: Tue, 18 Apr 2006 23:25:22 +0000 (+0000) Subject: doh! don't double-increment the bracket count for embedded references X-Git-Tag: 1.4.0-beta1~1887 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bcecc3d86376d084149b46b3398a2f6c104d2f85;p=thirdparty%2Fasterisk.git doh! don't double-increment the bracket count for embedded references git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21236 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx.c b/pbx.c index 85d692da92..5eb4fe416c 100644 --- a/pbx.c +++ b/pbx.c @@ -1346,7 +1346,6 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v while (brackets && *vare) { if ((vare[0] == '$') && (vare[1] == '{')) { needsub++; - brackets++; } else if (vare[0] == '{') { brackets++; } else if (vare[0] == '}') {