[postgis-tickets] [SCM] PostGIS branch stable-2.3 updated. 31852cbaaf8d80c1404d8110df4eac42965e15c8

git at osgeo.org git at osgeo.org
Mon Mar 30 03:27:23 PDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-2.3 has been updated
       via  31852cbaaf8d80c1404d8110df4eac42965e15c8 (commit)
      from  cb4666e71622d1755aa88c3b567670786ee87632 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 31852cbaaf8d80c1404d8110df4eac42965e15c8
Author: Raúl Marín <git at rmr.ninja>
Date:   Mon Mar 30 12:26:53 2020 +0200

    Remove c99 loop initial declaration

diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c
index f221a67..63c71f7 100644
--- a/postgis/lwgeom_in_gml.c
+++ b/postgis/lwgeom_in_gml.c
@@ -1061,6 +1061,7 @@ static LWGEOM* parse_gml_curve(xmlNodePtr xnode, bool *hasz, int *root_srid)
 		 * So we must aggregate all the segments into a single one and avoid
 		 * to copy the redundant points
 		 */
+		size_t i;
 		size_t cp_point_size = sizeof(POINT3D); /* All internals are done with 3D */
 		size_t final_point_size = *hasz ? sizeof(POINT3D) : sizeof(POINT2D);
 		pa = ptarray_construct(1, 0, npoints - lss + 1);
@@ -1074,7 +1075,7 @@ static LWGEOM* parse_gml_curve(xmlNodePtr xnode, bool *hasz, int *root_srid)
 		 * last point of the previous one, and copy all points except the
 		 * first one (since it'd be repeated)
 		 */
-		for (size_t i = 1; i < lss; i++)
+		for (i = 1; i < lss; i++)
 		{
 			if (memcmp(getPoint_internal(pa, npoints - 1), getPoint_internal(ppa[i], 0), final_point_size))
 				gml_lwpgerror("invalid GML representation", 41);

-----------------------------------------------------------------------

Summary of changes:
 postgis/lwgeom_in_gml.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list