axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r637840 - /webservices/axis2/trunk/c/util/src/array_list.c
Date Mon, 17 Mar 2008 11:18:44 GMT
Author: pini
Date: Mon Mar 17 04:18:35 2008
New Revision: 637840

URL: http://svn.apache.org/viewvc?rev=637840&view=rev
Log:
Cleaning the code and adding relevant logs

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

Modified: webservices/axis2/trunk/c/util/src/array_list.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/array_list.c?rev=637840&r1=637839&r2=637840&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/array_list.c (original)
+++ webservices/axis2/trunk/c/util/src/array_list.c Mon Mar 17 04:18:35 2008
@@ -43,6 +43,7 @@
     if (!array_list)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+		AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
         return NULL;
     }
 
@@ -58,6 +59,7 @@
     {
         axutil_array_list_free(array_list, env);
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+		AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
         return NULL;
     }
     array_list->capacity = capacity;
@@ -81,6 +83,7 @@
         if (!data)
         {
             AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+			AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
             return AXIS2_FAILURE;
         }
         memcpy(data, array_list->data, sizeof(void *) * array_list->capacity);



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


Mime
View raw message