[postgis-tickets] r17404 - Satisfy ISO C90.
Darafei
komzpa at gmail.com
Sun Apr 21 06:41:50 PDT 2019
Author: komzpa
Date: 2019-04-21 06:41:50 -0700 (Sun, 21 Apr 2019)
New Revision: 17404
Modified:
trunk/postgis/lwgeom_geos.c
Log:
Satisfy ISO C90.
References #4382
Modified: trunk/postgis/lwgeom_geos.c
===================================================================
--- trunk/postgis/lwgeom_geos.c 2019-04-21 12:58:43 UTC (rev 17403)
+++ trunk/postgis/lwgeom_geos.c 2019-04-21 13:41:50 UTC (rev 17404)
@@ -592,8 +592,8 @@
if (state->ngeoms > state->alen)
{
+ MemoryContext old = MemoryContextSwitchTo(aggcontext);
state->alen *= 2;
- MemoryContext old = MemoryContextSwitchTo(aggcontext);
state->geoms = repalloc(state->geoms, state->alen);
MemoryContextSwitchTo(old);
}
More information about the postgis-tickets
mailing list