[mapserver-commits] r7684 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Jun 16 19:22:39 EDT 2008


Author: tomkralidis
Date: 2008-06-16 19:22:39 -0400 (Mon, 16 Jun 2008)
New Revision: 7684

Modified:
   trunk/mapserver/mapogcfilter.c
Log:
fix segfault when srsName is not passed on BBOX Filter (#2644)



Modified: trunk/mapserver/mapogcfilter.c
===================================================================
--- trunk/mapserver/mapogcfilter.c	2008-06-16 23:21:16 UTC (rev 7683)
+++ trunk/mapserver/mapogcfilter.c	2008-06-16 23:22:39 UTC (rev 7684)
@@ -3761,7 +3761,7 @@
     if (psBox)
     {
         pszSRS = (char *)CPLGetXMLValue(psBox, "srsName", NULL);
-        if (ppszSRS)
+        if (*ppszSRS)
           *ppszSRS = strdup(pszSRS);
 
         psCoordinates = CPLGetXMLNode(psBox, "coordinates");



More information about the mapserver-commits mailing list