[postgis-tickets] r16169 - cleanup uninitialized use of context to appease travis

Regina Obe lr at pcorp.us
Wed Dec 20 08:32:41 PST 2017


Author: robe
Date: 2017-12-20 08:32:41 -0800 (Wed, 20 Dec 2017)
New Revision: 16169

Modified:
   trunk/libpgcommon/lwgeom_transform.c
Log:
cleanup uninitialized use of context to appease travis
References #3946

Modified: trunk/libpgcommon/lwgeom_transform.c
===================================================================
--- trunk/libpgcommon/lwgeom_transform.c	2017-12-20 16:18:57 UTC (rev 16168)
+++ trunk/libpgcommon/lwgeom_transform.c	2017-12-20 16:32:41 UTC (rev 16169)
@@ -197,9 +197,7 @@
 	PJHashEntry *he = (PJHashEntry *) arg;
 	projPJ projection = he->projection;
 	MemoryContext context;
-	if (projection)
-		context = he->ProjectionContext;
-
+	context = he->ProjectionContext;
 #endif
 	if (!projection)
 		elog(ERROR, "PROJ4SRSCacheDelete: Trying to delete non-existant projection object with MemoryContext key (%p)", (void *)context);



More information about the postgis-tickets mailing list