[libxslt] preproc: fix the build



commit 102099fb3bc0b29ede7dadc6388337ef4de59a74
Author: Stefan Kost <ensonic users sf net>
Date:   Tue May 3 15:16:47 2011 +0300

    preproc: fix the build
    
    Fixup commit 0d6713d715509da1fec27bec220d43aa4fc48d0f that forgot to create the
    local variable of the required type.

 libxslt/preproc.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libxslt/preproc.c b/libxslt/preproc.c
index 11500c9..f5d265d 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]