Initialize stack variables. Prelude to factoring out calls to check_user_share_access().