<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.14">
<TITLE>RE: [U-Boot-Users] [patch] setenv(...) can delete environmental variables</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>>Umm, correct me if I'm wrong, but doesn't 'setenv foo' with no<BR>
argument already delete an environment var called foo?<BR>
<BR>
No. It creates (or modifies) the environmental variable and gives it the value located at memory location zero (since that would be interpreted as a pointer to a char array at 0x0000000). To erase it, do_setenv needs to be called with two arguments, not three (see that difference in the patch?).<BR>
<BR>
-Jeff Mann</FONT>
</P>
</BODY>
</HTML>