From a8ae59f0d0b7cb328d2dadbe9d12557f2623449e Mon Sep 17 00:00:00 2001 From: Steve Lime Date: Sun, 18 Feb 2024 12:24:22 -0600 Subject: [PATCH] Linting fixes... one more time. --- src/mapservutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapservutil.c b/src/mapservutil.c index b6a9393ab..efa34f6fd 100644 --- a/src/mapservutil.c +++ b/src/mapservutil.c @@ -2002,8 +2002,8 @@ 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) { - int n=0; - for (int i=0; imap->numlayers; i++) { // count results + int n = 0; + for (int i = 0; i < mapserv->map->numlayers; i++) { // count results if (mapserv->map->layers[i]->resultcache) { n += mapserv->map->layers[i]->resultcache->numresults; }