Do not continue execution of ptarray_to_GEOSCoordSeq on error

git-svn-id: http://svn.osgeo.org/postgis/trunk@15241 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2016-11-21 15:27:12 +00:00
parent bf508bd859
commit 5a997c2642

View file

@ -225,7 +225,10 @@ ptarray_to_GEOSCoordSeq(const POINTARRAY *pa)
dims = 3;
if ( ! (sq = GEOSCoordSeq_create(pa->npoints, dims)) )
{
lwerror("Error creating GEOS Coordinate Sequence");
return NULL;
}
for ( i=0; i < pa->npoints; i++ )
{