[mapserver-commits] r7500 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Apr 7 16:54:07 EDT 2008


Author: warmerdam
Date: 2008-04-07 16:54:07 -0400 (Mon, 07 Apr 2008)
New Revision: 7500

Modified:
   trunk/mapserver/mapows.c
Log:
correct string comparison for exception context in GetLanguage

Modified: trunk/mapserver/mapows.c
===================================================================
--- trunk/mapserver/mapows.c	2008-04-07 17:46:09 UTC (rev 7499)
+++ trunk/mapserver/mapows.c	2008-04-07 20:54:07 UTC (rev 7500)
@@ -362,7 +362,7 @@
     /* if this is an exception, MapServer always returns Exception
        messages in en-US
     */
-    if (context == "exception") {
+    if (strcmp(context,"exception") == 0) {
       language = MS_ERROR_LANGUAGE;
     }
     /* if not, fetch language from mapfile metadata */



More information about the mapserver-commits mailing list