CRM_DEBUG("looking for..."); for (j=0; j < len; ++j) { 
CRM_DEBUG("looking for..."); for (j=0; j < len; ++j) { 
find_xml_node_nested(xmlNodePtr root, const char **search_path, int len){    int	j;	FNIN();	if (root == NULL) {		CRM_DEBUG("Will never find anything in NULL :)");		FNRET(NULL);    }    CRM_DEBUG("looking for...");    for (j=0; j < len; ++j) {		if (search_path[j] == NULL) break;		CRM_DEBUG2(" --> (%s).", search_path[j]);    }        xmlNodePtr child = root->children, lastMatch = NULL;    for (j=0; j < len; ++j) {		gboolean is_found = FALSE;		if (search_path[j] == NULL) break;			while(child != NULL) {			const char * child_name = (const char*)child->name;			CRM_DEBUG3("comparing (%s) with (%s).",					   search_path[j],					   child->name);			if (strcmp(child_name, search_path[j]) == 0) {				lastMatch = child;				child = lastMatch->children;				CRM_DEBUG3("found node (%s) @line (%ld).",						   search_path[j],						   xmlGetLineNo(child));				is_found = TRUE;				break;			}			child = child->next;		}		if (is_found == FALSE) {			CRM_DEBUG2("No more siblings left... %s cannot be found.",					   search_path[j]);			break;		}    }    if (j == len	   && lastMatch != NULL	   && strcmp(lastMatch->name, search_path[j-1]) == 0) {		CRM_DEBUG2("returning node (%s).", xmlGetNodePath(lastMatch));		FNRET(lastMatch);    }    cl_log(LOG_DEBUG,		   "Could not find the full path to the node you specified."		   "  Closest point was node (%s).", xmlGetNodePath(lastMatch));    FNRET(NULL);    }
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/1527bd277bea88314ec7c1fafa964969da82ef38/xmlutils.c/buggy/crm/common/xmlutils.c