From: Sandro Santilli Date: Tue, 23 Nov 2004 16:16:26 +0000 (+0000) Subject: POSTGIS2GEOS conversion failures handled cleanier X-Git-Tag: pgis_1_0_0RC1~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33a6ea80c260e561b199261b11bbf5b68c00b96c;p=postgis POSTGIS2GEOS conversion failures handled cleanier git-svn-id: http://svn.osgeo.org/postgis/trunk@1109 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_geos.c b/lwgeom/lwgeom_geos.c index 4ab2a72dd..01645d9e6 100644 --- a/lwgeom/lwgeom_geos.c +++ b/lwgeom/lwgeom_geos.c @@ -2281,6 +2281,10 @@ POSTGIS2GEOS(PG_LWGEOM *geom) } ret = LWGEOM2GEOS(lwgeom); lwgeom_release(lwgeom); + if ( ! ret ) { + lwerror("POSTGIS2GEOS conversion failed"); + return NULL; + } return ret; }