cleanup uninitialized use of context to appease travis
authorRegina Obe <lr@pcorp.us>
Wed, 20 Dec 2017 16:32:41 +0000 (16:32 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 20 Dec 2017 16:32:41 +0000 (16:32 +0000)
References #3946

git-svn-id: http://svn.osgeo.org/postgis/trunk@16169 b70326c6-7e19-0410-871a-916f4a2858ee

libpgcommon/lwgeom_transform.c

index a8db28eda51905bc3be244658bc5c6268b74cbe0..57f8604099ac1c0a0641ceb24b974d472cf8a21b 100644 (file)
@@ -197,9 +197,7 @@ PROJ4SRSCacheDelete(void *arg)
        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);