commit | a62685d3cd6082202c498f66be40cd118dba550f | [log] [tgz] |
---|---|---|
author | Gerlando Falauto <gerlando.falauto@keymile.com> | Fri Oct 05 00:46:10 2012 +0000 |
committer | Tom Rini <trini@ti.com> | Fri Oct 05 11:07:42 2012 -0700 |
tree | 4c0d152e5afa8eb5764b2ae86d107dcc2f4aaa0e | |
parent | ceb18fcea2ef1cdf986defe775d9d956587c44c5 [diff] |
env: fix crash using default -f -a 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 <sbabic@denx.de> Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com> Tested-by: Stefano Babic <sbabic@denx.de>