+PostGIS 1.0.6CVS
+ - Fixed palloc(0) call in collection deserializer (only gives
+ problem with --enable-cassert)
+
PostGIS 1.0.5
2005/11/25
- New "Reporting Bugs" chapter in manual
result->type = typefl;
result->SRID = insp->SRID;
result->ngeoms = insp->ngeometries;
- result->geoms = lwalloc(sizeof(LWGEOM *)*insp->ngeometries);
if (lwgeom_hasBBOX(srl[0]))
{
else result->bbox = NULL;
- for (i=0; i<insp->ngeometries; i++)
+ if ( insp->ngeometries )
{
- result->geoms[i] = lwgeom_deserialize(insp->sub_geoms[i]);
+ result->geoms = lwalloc(sizeof(LWGEOM *)*insp->ngeometries);
+ for (i=0; i<insp->ngeometries; i++)
+ {
+ result->geoms[i] =
+ lwgeom_deserialize(insp->sub_geoms[i]);
+ }
}
return result;