axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r331202 - in /webservices/axis2/trunk/c: include/axis2.h modules/core/description/src/svc.c
Date Mon, 07 Nov 2005 04:45:51 GMT
Author: damitha
Date: Sun Nov  6 20:45:44 2005
New Revision: 331202

URL: http://svn.apache.org/viewcvs?rev=331202&view=rev
Log:
fixed a bug in macro AXIS2_ERROR_HANDLE

Modified:
    webservices/axis2/trunk/c/include/axis2.h
    webservices/axis2/trunk/c/modules/core/description/src/svc.c

Modified: webservices/axis2/trunk/c/include/axis2.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2.h?rev=331202&r1=331201&r2=331202&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2.h (original)
+++ webservices/axis2/trunk/c/include/axis2.h Sun Nov  6 20:45:44 2005
@@ -64,7 +64,7 @@
  */    
 #define AXIS2_ERROR_SET(error_number, env, error_return) \
     { \
-        AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, AXIS2_ERROR_INVALID_NULL_PARAM); \
+        AXIS2_ERROR_SET_ERROR_NUMBER((*env)->error, error_number); \
         AXIS2_ERROR_SET_STATUS_CODE((*env)->error, AXIS2_FAILURE); \
         return error_return; \
     }      

Modified: webservices/axis2/trunk/c/modules/core/description/src/svc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/svc.c?rev=331202&r1=331201&r2=331202&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/src/svc.c Sun Nov  6 20:45:44 2005
@@ -211,12 +211,11 @@
     AXIS2_FUNC_PARAM_CHECK(env, svc, NULL);
     AXIS2_PARAM_CHECK(env, name, NULL);
 	axis2_char_t temp_name = axis2_strdup(name);
-    AXIS2_PARAM_CHECK(env, 
-    if(NULL == temp_name)
-        AXIS2_ERROR_HANDLE(env, AXIS2_ERROR_INVALID_NULL_PARAM);
+    AXIS2_PARAM_CHECK(env, temp_name, NULL); 
+    
 	return (axis2_operation_t *) (axis2_hash_get 
 		(AXIS2_INTF_TO_IMPL(svc)->wasaction_opeartionmap
-		, axis2_strdup(name), AXIS2_HASH_KEY_STRING));
+		, axis2_strdup(temp_name), AXIS2_HASH_KEY_STRING));
 }
 
 axis2_hash_t * AXIS2_CALL



Mime
View raw message