[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc1-31-gf79e7528a

git at osgeo.org git at osgeo.org
Wed Aug 17 13:44:56 PDT 2022


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, master has been updated
       via  f79e7528a3795a0270aaf7a550e8ee31811057e7 (commit)
      from  e87cf16e6220a69a868540a1b4ef303fd8a9dcf2 (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 f79e7528a3795a0270aaf7a550e8ee31811057e7
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Aug 17 13:44:52 2022 -0700

    Reset proj errno after failed parse

diff --git a/liblwgeom/lwgeom_transform.c b/liblwgeom/lwgeom_transform.c
index 850aba71c..e9bc859c9 100644
--- a/liblwgeom/lwgeom_transform.c
+++ b/liblwgeom/lwgeom_transform.c
@@ -232,6 +232,7 @@ lwgeom_transform_from_str(LWGEOM *geom, const char* instr, const char* outstr)
 		PJ *pj_in = proj_create(PJ_DEFAULT_CTX, instr);
 		if (!pj_in)
 		{
+			proj_errno_reset(NULL);
 			lwerror("could not parse proj string '%s'", instr);
 		}
 		proj_destroy(pj_in);
@@ -239,6 +240,7 @@ lwgeom_transform_from_str(LWGEOM *geom, const char* instr, const char* outstr)
 		PJ *pj_out = proj_create(PJ_DEFAULT_CTX, outstr);
 		if (!pj_out)
 		{
+			proj_errno_reset(NULL);
 			lwerror("could not parse proj string '%s'", outstr);
 		}
 		proj_destroy(pj_out);

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

Summary of changes:
 liblwgeom/lwgeom_transform.c | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list