[mapserver-commits] r7933 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Sep 29 12:57:06 EDT 2008


Author: tbonfort
Date: 2008-09-29 12:57:06 -0400 (Mon, 29 Sep 2008)
New Revision: 7933

Modified:
   trunk/mapserver/maplabel.c
Log:
avoid a compiler warning by initilizing a size variable


Modified: trunk/mapserver/maplabel.c
===================================================================
--- trunk/mapserver/maplabel.c	2008-09-28 20:48:27 UTC (rev 7932)
+++ trunk/mapserver/maplabel.c	2008-09-29 16:57:06 UTC (rev 7933)
@@ -182,7 +182,7 @@
      * space character shouldn't vary too much between different fonts*/
     if(label->space_size_10 == 0.0) {
         /*if the cache hasn't been initialized yet, or with pixmap fonts*/
-        int size;
+        int size=0; /*initialize this here to avoid compiler warning*/
         if(label->type == MS_TRUETYPE) {
             size = label->size; /*keep a copy of the original size*/
             label->size=10;



More information about the mapserver-commits mailing list