diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2010-11-08 10:49:32 +0100 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2010-11-08 10:49:32 +0100 |
commit | 3328b50bd73c91cefa5a4df5697ddf21dd20d60e (patch) | |
tree | 90b9b061459d1b81ff803477252eba1be8c2d838 | |
parent | 2a697a5819f8b22fc7541aae82aacf8b70135a93 (diff) | |
download | libxslt-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.c | 2 |
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; |