[GRASS-dev] Re: backports?
Glynn Clements
glynn at gclements.plus.com
Mon May 11 10:31:45 EDT 2009
Markus Neteler wrote:
> > Regarding r37069: if in doubt, do it. Try this:
> >
> > sh -c 'export -n GISRC ; g.version'
> >
> > Without r37069, 7.0 segfaults due to infinite recursion;
>
> GRASS 6.5.svn (nc_spm_08):~ > sh -c 'export -n GISRC ; g.version'
> ERROR: GISRC - variable not set
>
> No segfault - so no backport, right?
Right.
The difference is due to changes in lib/gis/env.c. The 6.4 version
marks the environment as initialised at the beginning of read_env(),
while the 7.0 version doesn't mark it as initialised until the end of
read_env(). Consequently, 6.4 won't recurse back into read_env().
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list