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: NStefano Babic <sbabic@denx.de> Signed-off-by: NGerlando Falauto <gerlando.falauto@keymile.com> Tested-by: NStefano Babic <sbabic@denx.de>
Showing
想要评论请 注册 或 登录