From: Paul Ramsey Date: Thu, 23 Apr 2015 20:00:45 +0000 (+0000) Subject: #3091, segfault in unit tests in debug X-Git-Tag: 2.2.0rc1~551 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2755e0c1d3aa8d5bec32ad302e2a9f2adfff555;p=postgis #3091, segfault in unit tests in debug git-svn-id: http://svn.osgeo.org/postgis/trunk@13441 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_geos.c b/liblwgeom/lwgeom_geos.c index ebf88581d..71ff1ca9e 100644 --- a/liblwgeom/lwgeom_geos.c +++ b/liblwgeom/lwgeom_geos.c @@ -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 */