[mapserver-users] Strange code in maporaclespatial.c
umn-ms at hydrotec.de
umn-ms at hydrotec.de
Thu May 20 05:30:18 PDT 2010
Hi
When I compiled mapserver 5.6.3 I got a warning, that a variable may be
used without initialization.
maporaclespatial.c; line 1322/1331:
Code looks indeed a bit strange ...
static void osPointCluster(msOracleSpatialHandler *hand, shapeObj *shape,
SDOGeometryObj *obj, int start, int end, lineObj points, int
interpretation, int data3d, int data4d)
{
int n;
//n = (end - start)/2;
//n = interpretation;
//
//if (n == interpretation)
// {
points.point = (pointObj *)malloc( sizeof(pointObj)*n );
"n" is used in malloc without any defined value ...
Bye, Benedikt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100520/ec34cb8a/attachment.htm>
More information about the MapServer-users
mailing list