[mapserver-commits] r10797 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Dec 12 16:33:46 EST 2010


Author: tamas
Date: 2010-12-12 13:33:46 -0800 (Sun, 12 Dec 2010)
New Revision: 10797

Modified:
   trunk/mapserver/mapfile.c
Log:
Fix for the memory corruption caused by the incomplete initialization in initStyle.

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2010-12-12 16:59:51 UTC (rev 10796)
+++ trunk/mapserver/mapfile.c	2010-12-12 21:33:46 UTC (rev 10797)
@@ -2163,9 +2163,9 @@
   style->autoangle= MS_FALSE;
   style->opacity = 100; /* fully opaque */
 
-  style->_geomtransform.string = NULL;  
+  initExpression(&(style->_geomtransform));
   style->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
-  
+
   style->patternlength = 0; /* solid line */
   style->gap = 0;
   style->position = MS_CC;



More information about the mapserver-commits mailing list