summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-05-03 15:16:47 +0300
committerStefan Kost <ensonic@users.sf.net>2011-05-03 15:16:47 +0300
commit102099fb3bc0b29ede7dadc6388337ef4de59a74 (patch)
tree45b93e2b749f7b4054b2e73f297194166a7d2c72
parente85d376d004fb065434aaee69a90931c7fae01c2 (diff)
downloadlibxslt-102099fb3bc0b29ede7dadc6388337ef4de59a74.tar.gz
preproc: fix the build
Fixup commit 0d6713d715509da1fec27bec220d43aa4fc48d0f that forgot to create the local variable of the required type.
-rw-r--r--libxslt/preproc.c12
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;