Init the resrc variable