[mapserver-commits] r11968 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Jul 21 09:58:52 EDT 2011


Author: assefa
Date: 2011-07-21 06:58:51 -0700 (Thu, 21 Jul 2011)
New Revision: 11968

Modified:
   trunk/mapserver/mapfile.c
Log:
fix windows build

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2011-07-21 00:11:01 UTC (rev 11967)
+++ trunk/mapserver/mapfile.c	2011-07-21 13:58:51 UTC (rev 11968)
@@ -5939,11 +5939,12 @@
     const char *default_key = msFirstKeyFromHashTable(table);
     while(default_key) {
       if(!strncmp(default_key,"default_",8)) {
+        char *new_filename = NULL;
         size_t buffer_size = (strlen(default_key)-5);
         char *tag = (char *)msSmallMalloc(buffer_size);
         snprintf(tag, buffer_size, "%%%s%%", &(default_key[8]));
 
-        char *new_filename = msStrdup(filename);
+        new_filename = msStrdup(filename);
         new_filename = msCaseReplaceSubstring(new_filename, tag, msLookupHashTable(table, default_key));
         free(tag);
 



More information about the mapserver-commits mailing list