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 sa...@apache.org on 2006/12/03 00:40:09 UTC

svn commit: r481668 - in /webservices/axis2/trunk/c/util/src: allocator.c properties.c

Author: samisa
Date: Sat Dec  2 15:40:07 2006
New Revision: 481668

URL: http://svn.apache.org/viewvc?view=rev&rev=481668
Log:
Fixed windows build break

Modified:
    webservices/axis2/trunk/c/util/src/allocator.c
    webservices/axis2/trunk/c/util/src/properties.c

Modified: webservices/axis2/trunk/c/util/src/allocator.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/allocator.c?view=diff&rev=481668&r1=481667&r2=481668
==============================================================================
--- webservices/axis2/trunk/c/util/src/allocator.c (original)
+++ webservices/axis2/trunk/c/util/src/allocator.c Sat Dec  2 15:40:07 2006
@@ -79,10 +79,11 @@
 
 AXIS2_EXTERN void AXIS2_CALL 
 axis2_allocator_switch_to_global_pool(axis2_allocator_t *allocator)
-{
+{   
+    void *temp = NULL;
     if (!allocator)
         return;
-    void *temp = allocator->local_pool;
+    temp = allocator->local_pool;
     allocator->local_pool = allocator->global_pool;
     allocator->global_pool = temp;
     return;
@@ -91,9 +92,10 @@
 AXIS2_EXTERN void AXIS2_CALL 
 axis2_allocator_switch_to_local_pool(axis2_allocator_t *allocator)
 {
+    void *temp = NULL;
     if (!allocator)
         return;
-    void *temp = allocator->global_pool;
+    temp = allocator->global_pool;
     allocator->global_pool = allocator->local_pool;
     allocator->local_pool = temp;
     return;

Modified: webservices/axis2/trunk/c/util/src/properties.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/properties.c?view=diff&rev=481668&r1=481667&r2=481668
==============================================================================
--- webservices/axis2/trunk/c/util/src/properties.c (original)
+++ webservices/axis2/trunk/c/util/src/properties.c Sat Dec  2 15:40:07 2006
@@ -388,13 +388,14 @@
 
         if (ncount + MAX_SIZE > total_alloc)
         {
+            axis2_char_t *new_stream = NULL;
             if (curr_alloc < MAX_ALLOC)
             {
                 curr_alloc *= 2;
             }
 
             total_alloc += curr_alloc;
-            axis2_char_t *new_stream = AXIS2_MALLOC(env->allocator,
+            new_stream = AXIS2_MALLOC(env->allocator,
                                            sizeof(axis2_char_t) * total_alloc);
             if (new_stream == NULL)
             {



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