]> granicus.if.org Git - postgis/commitdiff
avoided initializzation of JvNewObjectArray with undefined pointer
authorSandro Santilli <strk@keybit.net>
Tue, 8 Mar 2005 11:24:00 +0000 (11:24 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 8 Mar 2005 11:24:00 +0000 (11:24 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1512 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_jts_wrapper.cpp

index e3bf7e62a82cbcb32bf9bfde2dc3326913ae6e77..8605c926bc242147c07715ba022721e7623f7bbc 100644 (file)
@@ -926,7 +926,7 @@ PostGIS2JTS_polygon(const LWPOLY *lwpoly)
 
        try
        {
-               Coordinate *c;
+               //Coordinate *c;
                uint32 t;
                int ring;
                Geometry *g;
@@ -982,7 +982,7 @@ PostGIS2JTS_polygon(const LWPOLY *lwpoly)
                {
                        pa = lwpoly->rings[ring];
                        vc = JvNewObjectArray(pa->npoints,
-                               &Coordinate::class$, c);
+                               &Coordinate::class$, NULL);
                        if (is3d)
                        {
                                for(t=0; t<pa->npoints; t++)