We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2193120 commit a73457fCopy full SHA for a73457f
1 file changed
contrib/mapcache_detail/mapcache_detail.c
@@ -237,6 +237,8 @@ static void _destroy_json_pool() {
237
GEOSGeometry * mapcache_extent_to_GEOSGeometry(const mapcache_extent *extent)
238
{
239
GEOSCoordSequence *cs = GEOSCoordSeq_create(5,2);
240
+ GEOSGeometry *lr;
241
+ GEOSGeometry *bb;
242
243
GEOSCoordSeq_setX(cs,0,extent->minx);
244
GEOSCoordSeq_setY(cs,0,extent->miny);
@@ -249,8 +251,8 @@ GEOSGeometry * mapcache_extent_to_GEOSGeometry(const mapcache_extent *extent)
249
251
GEOSCoordSeq_setX(cs,4,extent->minx);
250
252
GEOSCoordSeq_setY(cs,4,extent->miny);
253
- GEOSGeometry* lr = GEOSGeom_createLinearRing(cs);
- GEOSGeometry* bb = GEOSGeom_createPolygon(lr, NULL, 0);
254
+ lr = GEOSGeom_createLinearRing(cs);
255
+ bb = GEOSGeom_createPolygon(lr, NULL, 0);
256
257
return bb;
258
}
0 commit comments