commit | 07fdfb5aabf6e076ed6c39ca695ac99d0cafceaa | [log] [tgz] |
---|---|---|
author | Ladislav Michl <ladis@linux-mips.org> | Tue Jul 12 20:28:22 2016 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Jul 22 14:46:13 2016 -0400 |
tree | 52c2bcaa775bbc230370358ca51a235b098ebe5b | |
parent | 7dbad5cc9179109d086d6495554d389e192aa833 [diff] |
cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init A private buffer is used to read mtdparts variable from non-relocated environment. A pointer to that buffer is returned unconditionally, confusing later test for variable presence in the environment. Fix it by returning NULL when getenv_f fails. Signed-off-by: Ladislav Michl <ladis@linux-mips.org>