Skip to content
Permalink
Browse files

Avoid compiler error by moving variable definition to the beginning o…

…f the block.
  • Loading branch information...
sdlime committed Nov 6, 2018
1 parent 462f376 commit f567914991b5822182673997e7750b21fde01aec
Showing with 2 additions and 2 deletions.
  1. +2 −2 mappostgis.c
@@ -3651,12 +3651,12 @@ int msPostGISLayerTranslateFilter(layerObj *layer, expressionObj *filter, char *

if(comparisonToken == MS_TOKEN_COMPARISON_IN) { /* issue 5490 */
char **strings=NULL;
int nstrings=0;
int i, nstrings=0;

strings = msStringSplit(node->tokenval.strval, ',', &nstrings);
if(nstrings > 0) {
native_string = msStringConcatenate(native_string, "(");
for(int i=0; i<nstrings; i++) {
for(i=0; i<nstrings; i++) {
if(i != 0) native_string = msStringConcatenate(native_string, ",");
strtmpl = "'%s'";
stresc = msPostGISEscapeSQLParam(layer, strings[i]);

0 comments on commit f567914

Please sign in to comment.
You can’t perform that action at this time.