You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2007/10/29 07:16:06 UTC

svn commit: r589502 - /webservices/axis2/trunk/c/util/src/env.c

Author: nandika
Date: Sun Oct 28 23:16:05 2007
New Revision: 589502

URL: http://svn.apache.org/viewvc?rev=589502&view=rev
Log:
axis2_env_create_with_error_log_thread_pool function changed, Instead of using axis2_env_create function to create the env, it is malloced so that unnecessary creation of error and log avoided

Modified:
    webservices/axis2/trunk/c/util/src/env.c

Modified: webservices/axis2/trunk/c/util/src/env.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/env.c?rev=589502&r1=589501&r2=589502&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/env.c (original)
+++ webservices/axis2/trunk/c/util/src/env.c Sun Oct 28 23:16:05 2007
@@ -118,18 +118,16 @@
     if (!allocator || !error || !pool)
         return NULL;
 
-    env = axutil_env_create(allocator);
+    env = (axutil_env_t *)AXIS2_MALLOC(allocator ,sizeof(axis2_env_t));
+	
 
     if (!env)
         return NULL;
-    
+
+    memset(env, 0, sizeof(axutil_env_t));
+
     env->allocator = allocator;
     env->error = error;
-    
-    if (env->log) /* free the default log before setting the given log */
-    {
-        AXIS2_LOG_FREE(env->allocator, env->log);
-    }
     env->log = log;
     
     env->thread_pool = pool;
@@ -138,6 +136,8 @@
         env->log_enabled = AXIS2_TRUE;
     else
         env->log_enabled = AXIS2_FALSE;
+
+    axutil_error_init();
 
     env->ref = 1;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org