More MSVC fixes from Mateusz related to ISO C++ vs. C99 variable initialisation.

git-svn-id: http://svn.osgeo.org/postgis/trunk@3848 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Mark Cave-Ayland 2009-03-10 21:29:14 +00:00
parent 447f68e2cd
commit 7cbd1b301d

View file

@ -308,12 +308,14 @@ output_polygon_ring_collection(uchar* geom,outfunc func,int supress)
int dimcount;
double *first_point;
double *last_point;
int cnt;
int orig_cnt;
first_point = lwalloc(dims * sizeof(double));
last_point = lwalloc(dims * sizeof(double));
int cnt = read_int(&geom);
int orig_cnt = cnt;
cnt = read_int(&geom);
orig_cnt = cnt;
if ( cnt == 0 ){
write_str(" EMPTY");
}
@ -827,12 +829,14 @@ output_wkb_polygon_ring_collection(uchar* geom,outwkbfunc func)
int dimcount;
double *first_point;
double *last_point;
int cnt;
int orig_cnt;
first_point = lwalloc(dims * sizeof(double));
last_point = lwalloc(dims * sizeof(double));
int cnt = read_int(&geom);
int orig_cnt = cnt;
cnt = read_int(&geom);
orig_cnt = cnt;
LWDEBUGF(2, "output_wkb_polygon_ring_collection: %d iterations loop", cnt);