commit | 7e0194a2c9d63f9d83ff51e40f1257084f23a87a | [log] [tgz] |
---|---|---|
author | Rabin Vincent <rabin@rab.in> | Wed Oct 29 23:21:38 2014 +0100 |
committer | Tom Rini <trini@ti.com> | Fri Nov 07 16:27:05 2014 -0500 |
tree | cb7ef79e3e9121c8cf5efea3c1a330647d78eb0a | |
parent | 70f3958d4bd01be1ad34f4b875c5515f727e557e [diff] |
sandbox: init cli for -c sandbox crashes if a variable is set in the -c command, because hush's top_vars is not allocated. Call cli_init() from sandbox to ensure this is done before we execute the -c command. $ ./u-boot -c 'a=1' ... Segmentation fault (core dumped) Signed-off-by: Rabin Vincent <rabin@rab.in> Acked-by: Simon Glass <sjg@chromium.org) Tested-by: Simon Glass <sjg@chromium.org)