axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r638229 - /webservices/axis2/trunk/c/util/src/base64_binary.c
Date Tue, 18 Mar 2008 06:14:26 GMT
Author: pini
Date: Mon Mar 17 23:14:24 2008
New Revision: 638229

URL: http://svn.apache.org/viewvc?rev=638229&view=rev
Log:
Cleaned the code and added relevant logs

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

Modified: webservices/axis2/trunk/c/util/src/base64_binary.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/base64_binary.c?rev=638229&r1=638228&r2=638229&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/base64_binary.c (original)
+++ webservices/axis2/trunk/c/util/src/base64_binary.c Mon Mar 17 23:14:24 2008
@@ -39,6 +39,7 @@
     if (!base64_binary)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
         return NULL;
     }
     base64_binary->plain_binary = NULL;
@@ -61,6 +62,7 @@
     if (!base64_binary)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
         return NULL;
     }
 
@@ -71,6 +73,7 @@
     {
         axutil_base64_binary_free(base64_binary, 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;
     }
     memcpy(base64_binary->plain_binary, plain_binary, plain_binary_len);
@@ -94,6 +97,7 @@
     if (!base64_binary)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
         return NULL;
     }
 
@@ -105,6 +109,7 @@
     {
         axutil_base64_binary_free(base64_binary, 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;
     }
     axutil_base64_decode_binary(base64_binary->plain_binary, encoded_binary);
@@ -154,6 +159,7 @@
     {
         axutil_base64_binary_free(base64_binary, env);
         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(base64_binary->plain_binary, plain_binary,
@@ -193,6 +199,7 @@
     {
         axutil_base64_binary_free(base64_binary, env);
         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;
     }
     axutil_base64_decode_binary(base64_binary->plain_binary, encoded_binary);
@@ -219,6 +226,7 @@
     {
         axutil_base64_binary_free(base64_binary, 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;
     }
     axutil_base64_encode_binary(encoded_binary, base64_binary->plain_binary,



---------------------------------------------------------------------
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