[mapserver-commits] r10199 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jun 1 12:46:05 EDT 2010


Author: sdlime
Date: 2010-06-01 12:46:05 -0400 (Tue, 01 Jun 2010)
New Revision: 10199

Modified:
   trunk/mapserver/maptemplate.c
Log:
Moved an error check on the file stream parameter in result set tag handling to after checking for the tag itself. Doing beforehand was problematic for URL templates that don't use that tag nor are read from a file.

Modified: trunk/mapserver/maptemplate.c
===================================================================
--- trunk/mapserver/maptemplate.c	2010-06-01 16:45:15 UTC (rev 10198)
+++ trunk/mapserver/maptemplate.c	2010-06-01 16:46:05 UTC (rev 10199)
@@ -946,14 +946,14 @@
     return(MS_FAILURE);
   }
 
+  tagStart = findTag(*line, "resultset");
+  if(!tagStart) return(MS_SUCCESS); /* OK, just return; */
+
   if(!stream) {
     msSetError(MS_WEBERR, "Invalid file pointer.", "processResultSetTag()");
     return(MS_FAILURE);
   }
 
-  tagStart = findTag(*line, "resultset");
-  if(!tagStart) return(MS_SUCCESS); /* OK, just return; */
-
   while (tagStart) {  
     /* initialize the tag arguments */
     layerName = NULL;



More information about the mapserver-commits mailing list