]> granicus.if.org Git - postgis/commitdiff
POSTGIS2GEOS conversion failures handled cleanier
authorSandro Santilli <strk@keybit.net>
Tue, 23 Nov 2004 16:16:26 +0000 (16:16 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 23 Nov 2004 16:16:26 +0000 (16:16 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1109 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos.c

index 4ab2a72dd92e908b99e0c17bf1e2a2091a59038e..01645d9e68f0c09c29491206b47ee8cec53f3196 100644 (file)
@@ -2281,6 +2281,10 @@ POSTGIS2GEOS(PG_LWGEOM *geom)
        }
        ret = LWGEOM2GEOS(lwgeom);
        lwgeom_release(lwgeom);
+       if ( ! ret )  {
+               lwerror("POSTGIS2GEOS conversion failed");
+               return NULL;
+       }
        return ret;
 }