From: Wolfgang Denk Date: Tue, 27 Oct 2009 21:01:42 +0100 Subject: [U-Boot] [PATCH 4/5 v2] setenv(): Delete 0-length environment variables In-Reply-To: <1256501576-19700-4-git-send-email-ptyser@xes-inc.com> References: <1256501576-19700-1-git-send-email-ptyser@xes-inc.com> <1256501576-19700-4-git-send-email-ptyser@xes-inc.com> Message-ID: <20091027200142.CC0FBE916D5@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Tyser, In message <1256501576-19700-4-git-send-email-ptyser@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 > --- > 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.