[GRASS5] Re: [GRASS-CVS] glynn: grass51/general/g.parser main.c,2.0,2.1

Markus Neteler neteler at itc.it
Fri Dec 3 11:52:24 EST 2004


Hi,

does the change below affect existing GRASS scripts?

Markus

On Tue, Nov 30, 2004 at 12:16:45AM +0100, grass at intevation.de wrote:
> Author: glynn
> 
> Update of /grassrepository/grass51/general/g.parser
> In directory doto:/tmp/cvs-serv8330/general/g.parser
> 
> Modified Files:
> 	main.c 
> Log Message:
> Unused options should be empty rather than "(null)".
> 
> 
> Index: main.c
> ===================================================================
> RCS file: /grassrepository/grass51/general/g.parser/main.c,v
> retrieving revision 2.0
> retrieving revision 2.1
> diff -u -d -r2.0 -r2.1
> --- main.c	9 Nov 2004 14:08:27 -0000	2.0
> +++ main.c	29 Nov 2004 23:16:43 -0000	2.1
> @@ -290,7 +290,7 @@
>      for (option = ctx.first_option; option; option = option->next_opt)
>      {
>  	char buff[1024];
> -	sprintf(buff, "GIS_OPT_%s=%s", option->key, option->answer);
> +	sprintf(buff, "GIS_OPT_%s=%s", option->key, option->answer ? option->answer : "");
>  	putenv(G_store(buff));
>      }
>  
> 
> 
> _______________________________________________
> grass-commit mailing list
> grass-commit at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-commit




More information about the grass-dev mailing list