Skip to content

Commit

Permalink
Linting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Feb 18, 2024
1 parent 34d2d5a commit b532d7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mapservutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -2001,16 +2001,17 @@ int msCGIDispatchQueryRequest(mapservObj *mapserv) {

/* catch empty result set when web->empty is set (#6907) */
if (mapserv->map->web.empty != NULL ||
CPLGetConfigOption("MS_EMPTY", NULL) != NULL) {
CPLGetConfigOption("MS_EMPTY", NULL) != NULL) {
int n=0;
for (int i=0; i<mapserv->map->numlayers; i++) { // count results for each layer
for (int i=0; i<mapserv->map->numlayers; i++) { // count results
if (mapserv->map->layers[i]->resultcache) {
n += mapserv->map->layers[i]->resultcache->numresults;
}
}
if (n == 0) {
/* note: this error message will not be displayed */
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msCGIDispatchQueryRequest()");
msSetError(MS_NOTFOUND, "No matching record(s) found.",
"msCGIDispatchQueryRequest()");
return(MS_FAILURE);
}
}
Expand Down

0 comments on commit b532d7b

Please sign in to comment.