}  rsc_lh = constraint->rsc_lh; if(rsc_lh == NULL) {
} else if(rsc == NULL) {
void native_rsc_location(resource_t *rsc, rsc_to_node_t *constraint){	int lpc;	GListPtr or_list;	resource_t *rsc_lh = rsc;	native_variant_data_t *native_data =		(native_variant_data_t *)rsc_lh->variant_opaque;		crm_debug_action(print_rsc_to_node("Applying", constraint, FALSE));	/* take "lifetime" into account */	if(constraint == NULL) {		crm_err("Constraint is NULL");		return;				} else if(is_active(constraint) == FALSE) {		crm_info("Constraint (%s) is not active", constraint->id);		/* warning */		return;	}    	rsc_lh = constraint->rsc_lh;	if(rsc_lh == NULL) {		crm_err("LHS of rsc_to_node (%s) is NULL", constraint->id);		return;	}	native_data->node_cons =		g_list_append(native_data->node_cons, constraint);	if(constraint->node_list_rh == NULL) {		crm_err("RHS of constraint %s is NULL", constraint->id);		return;	}	crm_debug_action(print_resource("before update", rsc_lh,TRUE));	or_list = node_list_or(		native_data->allowed_nodes, constraint->node_list_rh, FALSE);			pe_free_shallow(native_data->allowed_nodes);	native_data->allowed_nodes = or_list;	slist_iter(node_rh, node_t, constraint->node_list_rh, lpc,		   native_update_node_weight(			   constraint, node_rh->details->uname,			   native_data->allowed_nodes));	crm_debug_action(print_resource("after update", rsc_lh, TRUE));}