[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] booting and _mint_setenv



> BTW: Do you think releasing it would not crash? I think it actually
> points somewhere to the commandline space which is IIRC shared in
> SingleTOS (I use TOS 4.04). So I would better just set it to NULL and
> let the _mint_setenv() do its work.

Yes, you are right. Doing TRAP_Mfree() on TOS environment causes serious
problems. It seems better to just zero out the _base->p_env.

--
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to juz natura pospólstwa, albo sluzalczo sie plaszczy,
** albo bezczelnie sie panoszy. (Liwiusz XXIV, 25).