This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new dc9af94dbc Cleanup
dc9af94dbc is described below
commit dc9af94dbc115e1ebd3ad3f793a965e4fafc9fdc
Author: remm <[email protected]>
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 e1cda7bb97..dd654ea782 100644
--- a/java/org/apache/catalina/servlets/CGIServlet.java
+++ b/java/org/apache/catalina/servlets/CGIServlet.java
@@ -910,8 +910,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: [email protected]
For additional commands, e-mail: [email protected]