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

Markus Neteler neteler at itc.it
Thu May 23 12:10:00 EDT 2002


On Thu, May 23, 2002 at 04:29:01PM +0100, Glynn Clements wrote:
> 
> 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?

Meanwhile the fix by Roger Miller is submitted to env.c.

Markus



More information about the grass-dev mailing list