[U-Boot] [PATCH 4/5 v2] setenv(): Delete 0-length environment variables

Wolfgang Denk wd at denx.de
Tue Oct 27 21:01:42 CET 2009


Dear Peter Tyser,

In message <1256501576-19700-4-git-send-email-ptyser at xes-inc.com> you wrote:
> Previously setenv() would only delete an environment variable if it
> was passed a NULL string pointer as a value.  It should also delete an
> environment variable when it encounters a valid string pointer of
> 0-length.
> 
> This change/fix is generally useful and is necessary for the upcoming
> "editenv" command.
> 
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
> Changes since v1:
> - Updated commit title/message
> 
>  common/cmd_nvedit.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Computers are not intelligent.  They only think they are.


More information about the U-Boot mailing list