]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
setenv(): Delete 0-length environment variables
authorPeter Tyser <ptyser@xes-inc.com>
Sun, 25 Oct 2009 20:12:55 +0000 (15:12 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 27 Oct 2009 19:58:25 +0000 (20:58 +0100)
commitb0fa8e50632a628766db23f5c884ec63f1469552
treedd7ceb98ee9fb5fa678153c6187df2e42aefd25f
parentecc5500ee487170d8af6ff893fd1e0082380a01a
setenv(): Delete 0-length environment variables

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@xes-inc.com>
common/cmd_nvedit.c