You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/09/11 16:36:49 UTC
svn commit: r1840592 - /tomcat/jk/trunk/native/common/jk_util.c
Author: markt
Date: Tue Sep 11 16:36:49 2018
New Revision: 1840592
URL: http://svn.apache.org/viewvc?rev=1840592&view=rev
Log:
Tweak patch to make Windows build happy.
Modified:
tomcat/jk/trunk/native/common/jk_util.c
Modified: tomcat/jk/trunk/native/common/jk_util.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_util.c?rev=1840592&r1=1840591&r2=1840592&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_util.c (original)
+++ tomcat/jk/trunk/native/common/jk_util.c Tue Sep 11 16:36:49 2018
@@ -2288,6 +2288,8 @@ int jk_strip_session_id(char* path, char
jsessionid = strstr(path, session_name);
if (jsessionid) {
+ int i;
+ int j;
if (JK_IS_DEBUG_LEVEL(logger)) {
jk_log(logger, JK_LOG_DEBUG,
"removing session identifier for non servlet uri [%s]", path);
@@ -2295,8 +2297,8 @@ int jk_strip_session_id(char* path, char
// Found a session path parameter.
// Need to skip at least as many characters as there are in
// strip_session_name
- int i = strlen(session_name);
- int j = 0;
+ i = (int) strlen(session_name);
+ j = 0;
// Increment i until the first character after the parameter
while (jsessionid[i] != '\0' && jsessionid[i] != ';' && jsessionid[i] != '/') {
i++;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org