From: Paul Ramsey Date: Fri, 10 Oct 2008 16:34:24 +0000 (+0000) Subject: Pull prep_cache reference safely inside PREPARED_GEOM #ifdef X-Git-Tag: 1.4.0b1~635 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff7908cdfe13b7ae97e1188dd8d541b130a932cc;p=postgis Pull prep_cache reference safely inside PREPARED_GEOM #ifdef git-svn-id: http://svn.osgeo.org/postgis/trunk@3089 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_geos.c b/lwgeom/lwgeom_geos.c index 5e2af5b90..95d188ac8 100644 --- a/lwgeom/lwgeom_geos.c +++ b/lwgeom/lwgeom_geos.c @@ -1628,9 +1628,9 @@ Datum covers(PG_FUNCTION_ARGS) initGEOS(lwnotice, lwnotice); +#ifdef PREPARED_GEOM prep_cache = GetPrepGeomCache( fcinfo, geom1, 0 ); -#ifdef PREPARED_GEOM if ( prep_cache && prep_cache->prepared_geom && prep_cache->argnum == 1 ) { GEOSGeom g1 = POSTGIS2GEOS(geom2);