axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r617003 - /webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c
Date Thu, 31 Jan 2008 05:24:50 GMT
Author: dinesh
Date: Wed Jan 30 21:24:48 2008
New Revision: 617003

URL: http://svn.apache.org/viewvc?rev=617003&view=rev
Log:
patch applied for axis2c-857. Thanks Lahiru

Modified:
    webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c?rev=617003&r1=617002&r2=617003&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c Wed Jan 30 21:24:48 2008
@@ -355,45 +355,7 @@
             e_namesp = NULL;
         }
         return GUTHTHILA_FAILURE;
-    }temp_name = guththila_token_create(GUTHTHILA_XML_NAME,0,strlen(GUTHTHILA_XML_NAME),
-                                        1,0,0,env);
-    temp_tok = guththila_token_create(GUTHTHILA_XML_URI,0,strlen(GUTHTHILA_XML_URI),
-                                      1,0,0,env);
-    e_namesp = (guththila_elem_namesp_t *) AXIS2_MALLOC(env->allocator,
-                                                        sizeof(guththila_elem_namesp_t));
-    if (e_namesp && temp_tok && temp_name)
-    {
-        e_namesp->namesp =
-            (guththila_namespace_t *) AXIS2_MALLOC(env->allocator,
-                                                   sizeof(guththila_namespace_t) * GUTHTHILA_NAMESPACE_DEF_SIZE);
-    }
-    if (e_namesp->namesp)
-    {
-        e_namesp->no = 1;
-        e_namesp->size = GUTHTHILA_NAMESPACE_DEF_SIZE;
-        e_namesp->namesp[0].name = temp_name;
-        e_namesp->namesp[0].uri = temp_tok;
-        guththila_stack_push(&m->namesp, e_namesp, env);
-    }
-    else
-    {
-        if (temp_name)
-        {
-            AXIS2_FREE(env->allocator, temp_name);
-            temp_name = NULL;
-        }
-        if (temp_tok)
-        {
-            AXIS2_FREE(env->allocator, temp_tok);
-            temp_tok = NULL;
-        }
-        if (e_namesp)
-        {
-            AXIS2_FREE(env->allocator, e_namesp);
-            e_namesp = NULL;
-        }
-        return GUTHTHILA_FAILURE;
-    }
+    }     
     m->name = NULL;
     m->prefix = NULL;
     m->value = NULL;



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