[mapserver-commits] r9775 - branches/branch-5-6/mapserver

svn at osgeo.org svn at osgeo.org
Wed Feb 3 18:04:25 EST 2010


Author: pramsey
Date: 2010-02-03 18:04:25 -0500 (Wed, 03 Feb 2010)
New Revision: 9775

Modified:
   branches/branch-5-6/mapserver/mapwms.c
Log:
Initialize uninitialized variable found by valgrind (#3280)


Modified: branches/branch-5-6/mapserver/mapwms.c
===================================================================
--- branches/branch-5-6/mapserver/mapwms.c	2010-02-03 18:04:59 UTC (rev 9774)
+++ branches/branch-5-6/mapserver/mapwms.c	2010-02-03 23:04:25 UTC (rev 9775)
@@ -621,8 +621,8 @@
       }
     }
     else if (strcasecmp(names[i], "BBOX") == 0) {
-      char **tokens;
-      int n;
+      char **tokens = 0;
+      int n = 0;
       bboxfound = 1;
       tokens = msStringSplit(values[i], ',', &n);
       if (tokens==NULL || n != 4) {



More information about the mapserver-commits mailing list