mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 16:42:35 +00:00
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:
parent
bf508bd859
commit
5a997c2642
|
@ -225,7 +225,10 @@ ptarray_to_GEOSCoordSeq(const POINTARRAY *pa)
|
||||||
dims = 3;
|
dims = 3;
|
||||||
|
|
||||||
if ( ! (sq = GEOSCoordSeq_create(pa->npoints, dims)) )
|
if ( ! (sq = GEOSCoordSeq_create(pa->npoints, dims)) )
|
||||||
|
{
|
||||||
lwerror("Error creating GEOS Coordinate Sequence");
|
lwerror("Error creating GEOS Coordinate Sequence");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for ( i=0; i < pa->npoints; i++ )
|
for ( i=0; i < pa->npoints; i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue