axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r354350 - /webservices/axis2/trunk/c/test/xml/om/test_om.c
Date Tue, 06 Dec 2005 07:49:41 GMT
Author: samisa
Date: Mon Dec  5 23:49:33 2005
New Revision: 354350

URL: http://svn.apache.org/viewcvs?rev=354350&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/test/xml/om/test_om.c

Modified: webservices/axis2/trunk/c/test/xml/om/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/om/test_om.c?rev=354350&r1=354349&r2=354350&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/om/test_om.c (original)
+++ webservices/axis2/trunk/c/test/xml/om/test_om.c Mon Dec  5 23:49:33 2005
@@ -153,14 +153,14 @@
     buffer = AXIS2_XML_WRITER_GET_XML(writer, &environment);
     
     axis2_om_output_free(om_output, &environment);  
-    
-    printf("%s",buffer);
+    if(buffer)
+        printf("%s",buffer);
     
     AXIS2_OM_DOCUMENT_FREE(document, &environment); 
   
     AXIS2_OM_STAX_BUILDER_FREE(builder, &environment);
-  
-    AXIS2_FREE(environment->allocator, buffer); 
+    if(buffer)
+        AXIS2_FREE(environment->allocator, buffer); 
     
 
     
@@ -246,10 +246,11 @@
      output_buffer = AXIS2_XML_WRITER_GET_XML(writer, &environment);
      
      axis2_om_output_free(om_output, &environment);
-     
-     printf("%s",output_buffer);
-     
-     AXIS2_FREE(environment->allocator, output_buffer); 
+     if(output_buffer)
+     {
+        printf("%s",output_buffer);
+        AXIS2_FREE(environment->allocator, output_buffer); 
+     }        
      printf ("\nDONE\n");
 
     return 0;
@@ -271,6 +272,7 @@
     test_om_build (file_name);
     test_om_serialize();
     axis2_env_free(environment); 
+    getchar();
     return 0;
  }
  



Mime
View raw message