From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 10 Nov 2014 16:26:52 -0500 Subject: [U-Boot] [U-Boot,2/6] sandbox: init cli for -c In-Reply-To: <1414621302-32062-2-git-send-email-rabin@rab.in> References: <1414621302-32062-2-git-send-email-rabin@rab.in> Message-ID: <20141110212652.GS24724@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 29, 2014 at 11:21:38PM +0100, Rabin Vincent wrote: > 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 > Acked-by: Simon Glass Tested-by: Simon Glass