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

CHANGES
lwgeom/lwgeom_api.c

diff --git a/CHANGES b/CHANGES
index 92fea8a5ff98a1146cc0bedba51884722fa2c862..bec9582d746aa1e12a04c5fa48f2971e8de8825e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -31,6 +31,7 @@ PostGIS 1.0.5CVS
        - Fixed return code of shp2pgsql
        - Fixed handling of trailing dots in dbf numerical attributes
        - Schema aware postgis_proc_upgrade.pl, support for pgsql 7.2.1
+       - Fixed a small bug in the getPoint4d_p() low-level function
 
 PostGIS 1.0.4
 2005/09/09
index b82142be5d279aa33f68c15a1ddda19cb58d6c8d..e517b6f1069406caa0d4614848fdef464d89ec86 100644 (file)
@@ -443,7 +443,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;