From: Tom Rini Date: Fri, 5 Oct 2012 15:26:31 -0700 Subject: [U-Boot] [PATCH] env: fix crash using default -f -a In-Reply-To: <1349433970-16689-1-git-send-email-gerlando.falauto@keymile.com> References: <506EB964.4030902@denx.de> <1349433970-16689-1-git-send-email-gerlando.falauto@keymile.com> Message-ID: <20121005222631.GA18122@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 05, 2012 at 12:46:10PM +0200, Gerlando Falauto wrote: > env default -a -f calls env_check_apply on all existing environment > variables with a NULL value for "newval" as a way of cleaning up. > This causes string manipulation functions to crash on most architectures. > So replace a NULL argument with an empty string. > > Reported-By: Stefano Babic > Signed-off-by: Gerlando Falauto Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: