[GRASS5] Re: [bug #1052] (grass) [rsv].proj are crashing

Glynn Clements glynn.clements at virgin.net
Thu May 23 11:29:01 EDT 2002


Markus Neteler wrote:

> Following fix cures the problem for env.c:
> cvs diff -u env.c
> RCS file: /grassrepository/grass/src/libes/gis/env.c,v
> retrieving revision 1.5
> diff -u -r1.5 env.c
> --- env.c       12 May 2002 12:04:45 -0000      1.5
> +++ env.c       23 May 2002 08:25:33 -0000
> @@ -177,13 +177,12 @@
>      int n;
>  
>      for (n = 0; n < count; n++)
> -       if (env[n].name && (strcmp(env[n].name, name)==0))
> +       if (env[n].name && (strlen(name)!=0) && (strcmp(env[n].name, name)==0))
>         {
>             free (env[n].name);
>             env[n].name = 0;
>             return 1;
>         }
> -
>      return 0;
>  }
> 
> Objections to submit this fix?

This doesn't make any sense. What is the nature of the problem which
this is meant to fix?

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list