On the energy required for the ionization of the interior of a star