You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2007/02/02 10:10:54 UTC

svn commit: r502546 - /webservices/axis2/trunk/c/axiom/src/om/om_node.c

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