axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r502546 - /webservices/axis2/trunk/c/axiom/src/om/om_node.c
Date Fri, 02 Feb 2007 09:10:54 GMT
Author: damitha
Date: Fri Feb  2 01:10:53 2007
New Revision: 502546

URL: http://svn.apache.org/viewvc?view=rev&rev=502546
Log:
fixed a seg fault that occured due to a bad check

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_node.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_node.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_node.c?view=diff&rev=502546&r1=502545&r2=502546
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_node.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_node.c Fri Feb  2 01:10:53 2007
@@ -485,7 +485,7 @@
     /**********************************************************/
 	first_element = om_node->first_child;
 
-	while ((AXIOM_NODE_GET_NODE_TYPE(first_element, env) != AXIOM_ELEMENT) && first_element)
+	while (first_element && (AXIOM_NODE_GET_NODE_TYPE(first_element, env) != AXIOM_ELEMENT))
 		first_element = AXIOM_NODE_GET_NEXT_SIBLING (first_element, env);
 
     return first_element;



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