Skip to content

Commit

Permalink
nGeometryName changed to pszGeometryName for naming convention consis…
Browse files Browse the repository at this point in the history
…tency and add a missing free(wfsparams->pszGeometryName)
  • Loading branch information
yjacolin authored and tbonfort committed Sep 24, 2012
1 parent 8931146 commit d351081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions mapwfs.c
Expand Up @@ -2741,6 +2741,7 @@ void msWFSFreeParamsObj(wfsParamsObj *wfsparams)
free(wfsparams->pszTypeName);
free(wfsparams->pszFilter);
free(wfsparams->pszBbox);
free(wfsparams->pszGeometryName);
free(wfsparams->pszOutputFormat);
free(wfsparams->pszFeatureId);
free(wfsparams->pszSrs);
Expand Down
6 changes: 3 additions & 3 deletions mapwfslayer.c
Expand Up @@ -218,7 +218,7 @@ static char *msBuildWFSLayerPostRequest(mapObj *map, layerObj *lp,
{
char *pszPostReq = NULL;
char *pszFilter = NULL;
char *nGeometryName = "Geometry";
char *pszGeometryName = "Geometry";
size_t bufferSize = 0;

if (psParams->pszVersion == NULL ||
Expand All @@ -237,7 +237,7 @@ static char *msBuildWFSLayerPostRequest(mapObj *map, layerObj *lp,


if (psParams->pszGeometryName) {
nGeometryName = psParams->pszGeometryName;
pszGeometryName = psParams->pszGeometryName;
}

if (psParams->pszFilter)
Expand All @@ -252,7 +252,7 @@ static char *msBuildWFSLayerPostRequest(mapObj *map, layerObj *lp,
"<gml:coordinates>%f,%f %f,%f</gml:coordinates>\n"
"</gml:Box>\n"
"</ogc:BBOX>\n"
"</ogc:Filter>", nGeometryName, bbox->minx, bbox->miny, bbox->maxx, bbox->maxy);
"</ogc:Filter>", pszGeometryName, bbox->minx, bbox->miny, bbox->maxx, bbox->maxy);
}

bufferSize = strlen(pszFilter)+500;
Expand Down

0 comments on commit d351081

Please sign in to comment.