From: Paul Ramsey Date: Thu, 7 Sep 2017 18:34:12 +0000 (+0000) Subject: Per PR#139, change return count slightly in case of max recursion X-Git-Tag: 2.4.0rc1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b7c50f4279e9c42a664e64fbdff031f1d09e3f3;p=postgis Per PR#139, change return count slightly in case of max recursion git-svn-id: http://svn.osgeo.org/postgis/trunk@15658 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c index ffc249857..fb2e26ccd 100644 --- a/liblwgeom/lwgeom.c +++ b/liblwgeom/lwgeom.c @@ -1991,7 +1991,7 @@ lwgeom_subdivide_recursive(const LWGEOM *geom, int maxvertices, int depth, LWCOL if ( depth > maxdepth ) { lwcollection_add_lwgeom(col, lwgeom_clone_deep(geom)); - return 0; + return 1; } nvertices = lwgeom_count_vertices(geom);