Skip to content
Commit 7dbcb76e authored by Rabin Vincent's avatar Rabin Vincent Committed by Tom Rini
Browse files

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: default avatarRabin Vincent <rabin@rab.in>
Acked-by: default avatarSimon Glass <sjg@chromium.org)>
Tested-by: default avatarSimon Glass <sjg@chromium.org)>
parent 854d2b97
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment