]> granicus.if.org Git - postgis/commitdiff
Fix for #273? Some unitialized variables may have been causing problems. Initializing...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 23:51:57 +0000 (23:51 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 4 Nov 2009 23:51:57 +0000 (23:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4744 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_in_gml.c

index 8a6d4f3dcd876ea4c1d0451c4e3f4e68f775ae74..8e4b195e233ed67d5cf46a544eb71186081602bc 100644 (file)
@@ -1159,12 +1159,12 @@ static LWGEOM* parse_gml_polygon(xmlNodePtr xnode, bool *hasz, int *root_srid)
  */
 static LWGEOM* parse_gml_surface(xmlNodePtr xnode, bool *hasz, int *root_srid)
 {
-       xmlChar *interpolation;
+       xmlChar *interpolation = 0;
        xmlNodePtr xa, xb, xc;
-       int i, patch, ring;
-       POINTARRAY **ppa;
-       LWGEOM *geom;
-       gmlSrs *srs;
+       int i, patch, ring = 1;
+       POINTARRAY **ppa = 0;
+       LWGEOM *geom = 0;
+       gmlSrs *srs = 0;
        bool found=false;
 
        srs = parse_gml_srs(xnode);