From a70e199a3e8eebbd3040252d09e632534e36f965 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 22 May 2021 19:07:52 +0200 Subject: [PATCH] maptemplate.c: remove useless nullptr check (CID 1174444) --- maptemplate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maptemplate.c b/maptemplate.c index 6dc667a290..e1672ba60a 100644 --- a/maptemplate.c +++ b/maptemplate.c @@ -719,7 +719,7 @@ int processIfTag(char **pszInstr, hashTableObj *ht, int bLastPass) pszPatIn = findTag(pszTmp+1, "if"); pszPatOut = strstr(pszTmp+1, "[/if]"); - } while (pszTmp != NULL && nInst > 0); + } while (nInst > 0); /* get the then string (if expression is true) */ if(getInlineTag("if", pszStart, &pszThen) != MS_SUCCESS) {