]> granicus.if.org Git - postgis/commitdiff
Fixed short-initialization in getPoint4d_p
authorSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 10:49:36 +0000 (10:49 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 10:49:36 +0000 (10:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2021 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
lwgeom/lwgeom_api.c

diff --git a/CHANGES b/CHANGES
index 9ad75b7d1bec3b369e3cd8482a3c94ebe9ad83f1..0201d94e36906aea00723d5a9f10268bd9879fb7 100644 (file)
--- 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
index 0e8305cbda6ecb7905d60b8c61dd02a19f1211d7..15c363e3d7078f24c7b60034f6a5a4412790ffea 100644 (file)
@@ -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;