From a1d2ba093c6c556152b1b6f37e2ee58ddeb5a98b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 11 Nov 2005 10:49:36 +0000 Subject: [PATCH] Fixed short-initialization in getPoint4d_p git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2021 b70326c6-7e19-0410-871a-916f4a2858ee --- CHANGES | 1 + lwgeom/lwgeom_api.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9ad75b7d1..0201d94e3 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,7 @@ PostGIS 1.0.5CVS - Fixed handling of trailing dots in dbf numerical attributes - Schema aware postgis_proc_upgrade.pl, support for pgsql 7.2.1 - Fixed back-compatibility issue in loader (load of null shapefiles) + - Fixed a small bug in the getPoint4d_p() low-level function PostGIS 1.0.4 2005/09/09 diff --git a/lwgeom/lwgeom_api.c b/lwgeom/lwgeom_api.c index 0e8305cbd..15c363e3d 100644 --- a/lwgeom/lwgeom_api.c +++ b/lwgeom/lwgeom_api.c @@ -442,7 +442,7 @@ getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point) return 0; //error } - memset(point, 0, sizeof(POINT3DZ)); + memset(point, 0, sizeof(POINT4D)); size = pointArray_ptsize(pa); memcpy(point, getPoint_internal(pa, n), size); return 1; -- 2.40.0