axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r811999 - /webservices/axis2/trunk/c/axiom/src/om/om_element.c
Date Mon, 07 Sep 2009 05:23:00 GMT
Author: nandika
Date: Mon Sep  7 05:23:00 2009
New Revision: 811999

URL: http://svn.apache.org/viewvc?rev=811999&view=rev
Log:
namespace uri comparison added to find_declared_namespace function

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_element.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?rev=811999&r1=811998&r2=811999&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_element.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_element.c Mon Sep  7 05:23:00 2009
@@ -516,10 +516,11 @@
             found_ns = (axiom_namespace_t *)ns;
             found_uri = axiom_namespace_get_uri(found_ns, env);
             /* If uri provided, ensure this namespace found by prefix matches the uri */
-            if(uri && axutil_strcmp(found_uri, uri) == 0)
+            if(uri)
             {
-                return found_ns;
+                return (axutil_strcmp(found_uri, uri) == 0) ? found_ns : NULL;
             }
+			return found_ns;
         }
     }
     return NULL;



Mime
View raw message