[mapserver-commits] r11779 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Sat Jun 4 12:31:45 EDT 2011
Author: rouault
Date: 2011-06-04 09:31:45 -0700 (Sat, 04 Jun 2011)
New Revision: 11779
Modified:
trunk/mapserver/mapogcfilter.c
Log:
OGC Filter: fix segfault when a ows_varname_type or wfs_varname_type is defined but not a gml_varname_type (#3902)
Modified: trunk/mapserver/mapogcfilter.c
===================================================================
--- trunk/mapserver/mapogcfilter.c 2011-06-04 16:12:14 UTC (rev 11778)
+++ trunk/mapserver/mapogcfilter.c 2011-06-04 16:31:45 UTC (rev 11779)
@@ -2490,9 +2490,10 @@
bString = 0;
if (psFilterNode->psRightNode->pszValue)
{
+ const char* pszOFGType;
snprintf(szTmp, sizeof(szTmp), "%s_type", psFilterNode->psLeftNode->pszValue);
- if (msOWSLookupMetadata(&(lp->metadata), "OFG", szTmp) != NULL &&
- (strcasecmp(msOWSLookupMetadata(&(lp->metadata), "G", szTmp), "Character") == 0))
+ pszOFGType = msOWSLookupMetadata(&(lp->metadata), "OFG", szTmp);
+ if (pszOFGType!= NULL && strcasecmp(pszOFGType, "Character") == 0)
bString = 1;
else if (FLTIsNumeric(psFilterNode->psRightNode->pszValue) == MS_FALSE)
More information about the mapserver-commits
mailing list