- Fixed palloc(0) call in collection deserializer (only gives
problem with --enable-cassert)
- Fixed bbox cache handling bugs
+ - Fixed geom_accum(NULL, NULL) segfault
PostGIS 1.0.5
2005/11/25
#include "profile.h"
#include "wktparse.h"
-//#define PGIS_DEBUG 1
+/*#define PGIS_DEBUG 1*/
Datum LWGEOM_mem_size(PG_FUNCTION_ARGS);
Datum LWGEOM_summary(PG_FUNCTION_ARGS);
#ifdef PGIS_DEBUG
elog(NOTICE, "geom_accum: NULL geom, nelems=%d", nelems);
#endif
+ if ( array == NULL ) PG_RETURN_NULL();
PG_RETURN_ARRAYTYPE_P(array);
}
/* Make a DETOASTED copy of input geometry */
geom = (PG_LWGEOM *)PG_DETOAST_DATUM(datum);
+#ifdef PGIS_DEBUG
+ elog(NOTICE, "geom_accum: detoasted geom: %x", geom);
+#endif
/*
* Might use a more optimized version instead of lwrealloc'ing