[postgis-tickets] r15241 - Do not continue execution of ptarray_to_GEOSCoordSeq on error
Sandro Santilli
strk at kbt.io
Mon Nov 21 07:27:12 PST 2016
Author: strk
Date: 2016-11-21 07:27:12 -0800 (Mon, 21 Nov 2016)
New Revision: 15241
Modified:
trunk/liblwgeom/lwgeom_geos.c
Log:
Do not continue execution of ptarray_to_GEOSCoordSeq on error
Modified: trunk/liblwgeom/lwgeom_geos.c
===================================================================
--- trunk/liblwgeom/lwgeom_geos.c 2016-11-21 15:27:06 UTC (rev 15240)
+++ trunk/liblwgeom/lwgeom_geos.c 2016-11-21 15:27:12 UTC (rev 15241)
@@ -225,7 +225,10 @@
dims = 3;
if ( ! (sq = GEOSCoordSeq_create(pa->npoints, dims)) )
+ {
lwerror("Error creating GEOS Coordinate Sequence");
+ return NULL;
+ }
for ( i=0; i < pa->npoints; i++ )
{
More information about the postgis-tickets
mailing list