[mapserver-commits] r10633 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Oct 19 19:59:37 EDT 2010


Author: warmerdam
Date: 2010-10-19 16:59:37 -0700 (Tue, 19 Oct 2010)
New Revision: 10633

Modified:
   trunk/mapserver/mapows.c
Log:
avoid crashing with null mimetype (#3570)

Modified: trunk/mapserver/mapows.c
===================================================================
--- trunk/mapserver/mapows.c	2010-10-19 23:59:16 UTC (rev 10632)
+++ trunk/mapserver/mapows.c	2010-10-19 23:59:37 UTC (rev 10633)
@@ -1906,7 +1906,7 @@
                 msStringTrim(tokens[i]);
                 if (strcasecmp(tokens[i], format) == 0)
                   break;
-                if (strcasecmp(mimetype, format) == 0)
+                if (mimetype && strcasecmp(mimetype, format) == 0)
                   break;
             }
             msFreeCharArray(tokens, n);



More information about the mapserver-commits mailing list