From: Paul Ramsey Date: Wed, 4 Nov 2009 23:51:57 +0000 (+0000) Subject: Fix for #273? Some unitialized variables may have been causing problems. Initializing... X-Git-Tag: 1.5.0b1~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8832aa1b22620897adfd5079995d65bdfcf95ed7;p=postgis Fix for #273? Some unitialized variables may have been causing problems. Initializing them fixed this problem for me. git-svn-id: http://svn.osgeo.org/postgis/trunk@4744 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c index 8a6d4f3dc..8e4b195e2 100644 --- a/postgis/lwgeom_in_gml.c +++ b/postgis/lwgeom_in_gml.c @@ -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);