native_variant_data_t *native_data = NULL;
native_assign_color(resource_t *rsc, color_t *color) {	native_variant_data_t *native_data = NULL;	color_t *local_color = add_color(rsc, color);	GListPtr intersection = NULL;	GListPtr old_list = NULL;	rsc->provisional = FALSE;		CRM_DEV_ASSERT(local_color != NULL);	if (crm_assert_failed) {		pe_err("local color was NULL");		return;	}	local_color->details->allocated_resources =		g_list_append(local_color->details->allocated_resources,rsc);	if(rsc->variant == pe_native) {		(local_color->details->num_resources)++;		get_native_variant_data(native_data, rsc);		rsc->color = copy_color(local_color);		crm_debug_3("Created intersection for color %d",			    local_color->id);		intersection = node_list_and(			local_color->details->candidate_nodes, 			rsc->allowed_nodes, FALSE);		old_list = local_color->details->candidate_nodes;				pe_free_shallow(old_list);				local_color->details->candidate_nodes = intersection;	}		crm_debug("Colored resource %s with color %d",		    rsc->id, local_color->id);		crm_action_debug_3(		print_resource("Colored Resource", rsc, TRUE));		return;}