if(rsc != NULL && safe_str_eq(rsc->id, id_rh)){
if(rsc != NULL && safe_str_eq(rsc->id, id)){ crm_debug("Found a match for %s", id);
pe_find_resource(GListPtr rsc_list, const char *id_rh){	int lpc = 0;	resource_t *rsc = NULL;	for(lpc = 0; lpc < g_list_length(rsc_list); lpc++) {		rsc = g_list_nth_data(rsc_list, lpc);		if(rsc != NULL && safe_str_eq(rsc->id, id_rh)){			return rsc;		}	}	/* error */	return NULL;}