You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/09/11 13:52:01 UTC
[tomcat] branch 8.5.x updated: Cleanup
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 372519673f Cleanup
372519673f is described below
commit 372519673fbf2169688b9c354ca24171d220aab0
Author: remm <re...@apache.org>
AuthorDate: Mon Sep 11 15:49:23 2023 +0200
Cleanup
Argument cannot be null, so remove check that triggered coverity.
---
java/org/apache/catalina/servlets/CGIServlet.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/servlets/CGIServlet.java b/java/org/apache/catalina/servlets/CGIServlet.java
index a406a4a756..fdb7e3db8f 100644
--- a/java/org/apache/catalina/servlets/CGIServlet.java
+++ b/java/org/apache/catalina/servlets/CGIServlet.java
@@ -909,8 +909,7 @@ public final class CGIServlet extends HttpServlet {
String name = null;
String scriptname = null;
- if (webAppRootDir != null &&
- webAppRootDir.lastIndexOf(File.separator) == (webAppRootDir.length() - 1)) {
+ if (webAppRootDir.lastIndexOf(File.separator) == (webAppRootDir.length() - 1)) {
//strip the trailing "/" from the webAppRootDir
webAppRootDir = webAppRootDir.substring(0, (webAppRootDir.length() - 1));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org