]> granicus.if.org Git - postgis/commitdiff
#3091, segfault in unit tests in debug
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Apr 2015 20:00:45 +0000 (20:00 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 23 Apr 2015 20:00:45 +0000 (20:00 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13441 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos.c

index ebf88581d5aaf61e6498bba95fb6d0557c99cd53..71ff1ca9ea30a07e3b77ec5c6e1cc27c4bf51114 100644 (file)
@@ -219,14 +219,14 @@ ptarray_to_GEOSCoordSeq(const POINTARRAY *pa)
                {
                        p3d = getPoint3dz_cp(pa, i);
                        p2d = (const POINT2D *)p3d;
+                       LWDEBUGF(4, "Point: %g,%g,%g", p3d->x, p3d->y, p3d->z);
                }
                else
                {
                        p2d = getPoint2d_cp(pa, i);
+                       LWDEBUGF(4, "Point: %g,%g", p2d->x, p2d->y);
                }
 
-               LWDEBUGF(4, "Point: %g,%g,%g", p2d->x, p2d->y, p3d->z);
-
 #if POSTGIS_GEOS_VERSION < 33
                /* Make sure we don't pass any infinite values down into GEOS */
                /* GEOS 3.3+ is supposed to  handle this stuff OK */