[mapserver-commits] r7591 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed May 14 13:47:41 EDT 2008


Author: tbonfort
Date: 2008-05-14 13:47:41 -0400 (Wed, 14 May 2008)
New Revision: 7591

Modified:
   trunk/mapserver/maputil.c
Log:
fix a bug with an uninitialized variable

Modified: trunk/mapserver/maputil.c
===================================================================
--- trunk/mapserver/maputil.c	2008-05-14 17:10:48 UTC (rev 7590)
+++ trunk/mapserver/maputil.c	2008-05-14 17:47:41 UTC (rev 7591)
@@ -1463,8 +1463,8 @@
             first = 1;
             for(j=1; j<p->line[i].numpoints; j++) {        
                 ox=0; oy=0;
-                dx = (p->line[i].point[j].x - p->line[i].point[j-1].x);
-                dy = (p->line[i].point[j].y - p->line[i].point[j-1].y);
+                x = dx = (p->line[i].point[j].x - p->line[i].point[j-1].x);
+                y = dy = (p->line[i].point[j].y - p->line[i].point[j-1].y);
 
                 /* offset setting - quick approximation, may be changed with goniometric functions */
                 if(dx==0) { /* vertical line */



More information about the mapserver-commits mailing list