You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ma...@apache.org on 2007/09/10 08:14:21 UTC

svn commit: r574145 - /webservices/rampart/trunk/c/src/omxmlsec/axiom.c

Author: manjula
Date: Sun Sep  9 23:14:20 2007
New Revision: 574145

URL: http://svn.apache.org/viewvc?rev=574145&view=rev
Log:
prevent creating namespace when ns uri is null before creating a attribte.

Modified:
    webservices/rampart/trunk/c/src/omxmlsec/axiom.c

Modified: webservices/rampart/trunk/c/src/omxmlsec/axiom.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/omxmlsec/axiom.c?rev=574145&r1=574144&r2=574145&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/omxmlsec/axiom.c (original)
+++ webservices/rampart/trunk/c/src/omxmlsec/axiom.c Sun Sep  9 23:14:20 2007
@@ -42,7 +42,10 @@
     axis2_status_t status = AXIS2_FAILURE;
     axiom_namespace_t *ns = NULL;
 
-    ns =  axiom_namespace_create(env, attribute_ns_uri, attribute_ns);
+    if(attribute_ns_uri)
+    {    
+        ns =  axiom_namespace_create(env, attribute_ns_uri, attribute_ns);
+    }    
 
     ele =  axiom_node_get_data_element(node, env);
     attr =  axiom_attribute_create(env, attribute , value, ns);