axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r378431 - /webservices/axis2/trunk/c/include/axis2_env.h
Date Fri, 17 Feb 2006 04:58:36 GMT
Author: nandika
Date: Thu Feb 16 20:58:33 2006
New Revision: 378431

URL: http://svn.apache.org/viewcvs?rev=378431&view=rev
Log:
AXIS2_ENV_CHECK macro error fixed 

Modified:
    webservices/axis2/trunk/c/include/axis2_env.h

Modified: webservices/axis2/trunk/c/include/axis2_env.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_env.h?rev=378431&r1=378430&r2=378431&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_env.h (original)
+++ webservices/axis2/trunk/c/include/axis2_env.h Thu Feb 16 20:58:33 2006
@@ -143,8 +143,14 @@
     AXIS2_DECLARE(axis2_status_t) axis2_env_write_log (axis2_env_t **env, const char* message,
axis2_log_levels_t level);
     #define AXIS2_LOG(env, message, level) axis2_env_write_log (env,message, level)
 
-    #define AXIS2_ENV_CHECK(env, error_return) \
-    if(!env || !(*env))  \
+
+
+#define AXIS2_ENV_CHECK(env, error_return) \
+    if(!env) \
+    { \
+        return error_return; \
+    } \
+    if(!(*env))  \
 	{ \
 		axis2_allocator_t *allocator = axis2_allocator_init (NULL); \
         *env = axis2_env_create (allocator); \



Mime
View raw message