summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2010-11-08 10:49:32 +0100
committerDaniel Veillard <veillard@redhat.com>2010-11-08 10:49:32 +0100
commit3328b50bd73c91cefa5a4df5697ddf21dd20d60e (patch)
tree90b9b061459d1b81ff803477252eba1be8c2d838
parent2a697a5819f8b22fc7541aae82aacf8b70135a93 (diff)
downloadlibxslt-3328b50bd73c91cefa5a4df5697ddf21dd20d60e.tar.gz
libxslt-3328b50bd73c91cefa5a4df5697ddf21dd20d60e.tar.bz2
libxslt-3328b50bd73c91cefa5a4df5697ddf21dd20d60e.zip
Fix popping of vars in xsltCompilerNodePop
Fix an off by one bug in Var pop-up in the compiler
-rw-r--r--libxslt/xslt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index dd58f814..8e8c414b 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -2437,13 +2437,13 @@ xsltCompilerNodePop(xsltCompilerCtxtPtr cctxt, xmlNodePtr node)
"xsltCompilerNodePop: Depth mismatch.\n");
goto mismatch;
}
+ cctxt->depth--;
/*
* Pop information of variables.
*/
if ((cctxt->ivar) && (cctxt->ivar->depth > cctxt->depth))
xsltCompilerVarInfoPop(cctxt);
- cctxt->depth--;
cctxt->inode = cctxt->inode->prev;
if (cctxt->inode != NULL)
cctxt->inode->curChildType = 0;