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 ka...@apache.org on 2007/03/26 15:30:54 UTC

svn commit: r522509 - in /webservices/axis2/trunk/c: axiom/src/om/om_element.c util/src/string.c

Author: kaushalye
Date: Mon Mar 26 06:30:50 2007
New Revision: 522509

URL: http://svn.apache.org/viewvc?view=rev&rev=522509
Log:
Fixed the problems in xml processing after the introduction of the string struct. this commit also fixes the jira issue AXIS2C-553.


Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_element.c
    webservices/axis2/trunk/c/util/src/string.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_element.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_element.c?view=diff&rev=522509&r1=522508&r2=522509
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_element.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_element.c Mon Mar 26 06:30:50 2007
@@ -368,7 +368,8 @@
         key = AXIS2_MALLOC(env->allocator, sizeof(char) * 10);
         memset(key, 0, sizeof(char)*10);
         om_element->next_ns_prefix_number++;
-        sprintf(key, "axis2ns%d", om_element->next_ns_prefix_number);
+        /*sprintf(key, "axis2ns%d", om_element->next_ns_prefix_number);*/
+        sprintf(key, "");
         axis2_hash_set(om_element->namespaces, key,
             AXIS2_HASH_KEY_STRING, ns);
     }
@@ -430,7 +431,8 @@
         key = AXIS2_MALLOC(env->allocator, sizeof(char) * 10);
         memset(key, 0, sizeof(char)*10);
         om_element->next_ns_prefix_number++;
-        sprintf(key, "axis2ns%d", om_element->next_ns_prefix_number);
+        /*sprintf(key, "axis2ns%d", om_element->next_ns_prefix_number);*/
+        sprintf(key, "");
         axis2_hash_set(om_element->namespaces, key,
             AXIS2_HASH_KEY_STRING,  ns);
     }

Modified: webservices/axis2/trunk/c/util/src/string.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/string.c?view=diff&rev=522509&r1=522508&r2=522509
==============================================================================
--- webservices/axis2/trunk/c/util/src/string.c (original)
+++ webservices/axis2/trunk/c/util/src/string.c Mon Mar 26 06:30:50 2007
@@ -58,7 +58,7 @@
     
     string->length = axis2_strlen(str);
     
-    if (string->length < 1)
+    if (string->length < 0)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, 
             AXIS2_FAILURE);
@@ -107,7 +107,7 @@
     string->ref_count = 1;
     string->owns_buffer = AXIS2_TRUE;    
     
-    if (string->length < 1)
+    if (string->length < 0)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, 
             AXIS2_FAILURE);
@@ -146,7 +146,7 @@
     string->ref_count = 1;
     string->owns_buffer = AXIS2_FALSE;    
     
-    if (string->length < 1)
+    if (string->length < 0)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, 
             AXIS2_FAILURE);



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