[GRASS5] Re: [bug #1052] (grass) [rsv].proj are crashing
Glynn Clements
glynn.clements at virgin.net
Thu May 23 14:47:36 EDT 2002
Roger Miller wrote:
> Markus, if an empty string caused the problem, then maybe a better fix would
> be to change set_env so that an empty string never stored. An empty string
> could be treated like a NULL.
>
> At line 125 in env.c the statement
>
> if(!value)
>
> could be changed to
>
> if(!value || !strlen(value))
>
> That way an empty string is treated the same way as sending a NULL string and
> causes GRASS to unset the environment variable.
This should already be handled by the lines which follow:
tv = G_store (value);
G_strip (tv);
if (*tv == 0)
{
free (tv);
unset_env (name);
return 1;
}
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list