diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-05-03 15:16:47 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2011-05-03 15:16:47 +0300 |
commit | 102099fb3bc0b29ede7dadc6388337ef4de59a74 (patch) | |
tree | 45b93e2b749f7b4054b2e73f297194166a7d2c72 | |
parent | e85d376d004fb065434aaee69a90931c7fae01c2 (diff) | |
download | libxslt-102099fb3bc0b29ede7dadc6388337ef4de59a74.tar.gz libxslt-102099fb3bc0b29ede7dadc6388337ef4de59a74.tar.bz2 libxslt-102099fb3bc0b29ede7dadc6388337ef4de59a74.zip |
preproc: fix the build
Fixup commit 0d6713d715509da1fec27bec220d43aa4fc48d0f that forgot to create the
local variable of the required type.
-rw-r--r-- | libxslt/preproc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libxslt/preproc.c b/libxslt/preproc.c index 11500c94..f5d265d8 100644 --- a/libxslt/preproc.c +++ b/libxslt/preproc.c @@ -420,11 +420,13 @@ xsltFreeStylePreComp(xsltStylePreCompPtr comp) { xmlXPathFreeCompExpr(item->comp); } break; - case XSLT_FUNC_NUMBER: - if (item->numdata.countPat != NULL) - xsltFreeCompMatchList(item->numdata.countPat); - if (item->numdata.fromPat != NULL) - xsltFreeCompMatchList(item->numdata.fromPat); + case XSLT_FUNC_NUMBER: { + xsltStyleItemNumberPtr item = (xsltStyleItemNumberPtr) comp; + if (item->numdata.countPat != NULL) + xsltFreeCompMatchList(item->numdata.countPat); + if (item->numdata.fromPat != NULL) + xsltFreeCompMatchList(item->numdata.fromPat); + } break; case XSLT_FUNC_APPLYIMPORTS: break; |