[PATCH] echo not working for ENABLE_FEATURE_FANCY_ECHO=n

Denis Vlasenko vda.linux at googlemail.com
Wed Jun 6 07:51:18 UTC 2007


On Tuesday 05 June 2007 23:25, Harald KЭthe wrote:
> Hello list,
> 
> echo is not working for ENABLE_FEATURE_FANCY_ECHO=n
> due to arg not being initialised.
> 
> This trivial patch fixes this:
> --- busybox-1.6.0.orig/coreutils/echo.c 2007-06-01 13:48:34.000000000 +0200
> +++ busybox-1.6.0/coreutils/echo.c 2007-06-05 23:07:14.000000000 +0200
> @@ -33,7 +33,7 @@
>    eflag = '\\',
>    nflag = 1,  /* 1 -- print '\n' */
>   };
> - ++argv;
> + arg = *++argv;
>  #else
>   const char *p;
>   char nflag = 1;

Applied as rev 18752, thanks!
--
vda



More information about the busybox mailing list