tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r591995 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
Date Mon, 05 Nov 2007 13:49:38 GMT
Author: mturk
Date: Mon Nov  5 05:49:37 2007
New Revision: 591995

URL: http://svn.apache.org/viewvc?rev=591995&view=rev
Log:
Do not allocate envvar maps on create. They are allocated on first use

Modified:
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=591995&r1=591994&r2=591995&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Mon Nov  5 05:49:37 2007
@@ -2384,11 +2384,9 @@
     c->uw_map = NULL;
 
     c->envvars_in_use = JK_FALSE;
-    if (!s->is_virtual) {
-        c->envvars = apr_table_make(p, 0);
-        c->envvars_def = apr_table_make(p, 0);
-        c->envvar_items = apr_array_make(p, 0, sizeof(envvar_item));
-    }
+    c->envvars = NULL;
+    c->envvars_def = NULL;
+    c->envvar_items = NULL;
 
     c->s = s;
     apr_pool_cleanup_register(p, s, jk_apr_pool_cleanup, jk_apr_pool_cleanup);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message