[postgis-tickets] r16150 - Return pointer? references #3940

Paul Ramsey pramsey at cleverelephant.ca
Wed Dec 13 06:03:52 PST 2017


Author: pramsey
Date: 2017-12-13 06:03:52 -0800 (Wed, 13 Dec 2017)
New Revision: 16150

Modified:
   trunk/postgis/lwgeom_transform.c
Log:
Return pointer? references #3940


Modified: trunk/postgis/lwgeom_transform.c
===================================================================
--- trunk/postgis/lwgeom_transform.c	2017-12-12 22:53:48 UTC (rev 16149)
+++ trunk/postgis/lwgeom_transform.c	2017-12-13 14:03:52 UTC (rev 16150)
@@ -71,7 +71,7 @@
 
 	/* Input SRID and output SRID are equal, noop */
 	if ( input_srid == output_srid )
-		PG_RETURN_POINTER(PG_GETARG_DATUM(0));
+		PG_RETURN_POINTER(geom);
 
 	if ( GetProjectionsUsingFCInfo(fcinfo, input_srid, output_srid, &input_pj, &output_pj) == LW_FAILURE )
 	{



More information about the postgis-tickets mailing list