[mapserver-commits] r12208 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:07:17 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:07:17 -0700 (Fri, 26 Aug 2011)
New Revision: 12208

Modified:
   trunk/mapserver/mapcache/src/services.c
Log:
add watermarking
thomas.bonfort | 2011-01-07 11:08:08 +0100 (Fri, 07 Jan 2011)

Modified: trunk/mapserver/mapcache/src/services.c
===================================================================
--- trunk/mapserver/mapcache/src/services.c	2011-08-26 11:07:12 UTC (rev 12207)
+++ trunk/mapserver/mapcache/src/services.c	2011-08-26 11:07:17 UTC (rev 12208)
@@ -834,8 +834,8 @@
       int prefixlen;
       geocache_service *service = NULL;
       service = config->services[i];
+      if(!service) continue; /* skip an unconfigured service */
       prefixlen = strlen(service->url_prefix);
-      if(!service) continue; /* skip an unconfigured service */
       if(strncmp(service->url_prefix,pathinfo, prefixlen)) continue; /*skip a service who's prefix does not correspond */
       if(*(pathinfo+prefixlen)!='/' && *(pathinfo+prefixlen)!='\0') continue; /*we matched the prefix but there are trailing characters*/
       pathinfo += prefixlen; /* advance pathinfo to after the service prefix */



More information about the mapserver-commits mailing list