Additional fix to readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating

Removed unneeded command line history initialization.  Also, the original
code would access the 'initted' variable before relocation to SDRAM
which resulted in erratic behavior since the bss is not initialized when
executing from flash.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
Peter Tyser 2008-05-22 18:56:52 -05:00 committed by Wolfgang Denk
parent 22f371b630
commit 35ef877f0a

View File

@ -940,12 +940,6 @@ int readline_into_buffer (const char *const prompt, char * buffer)
int rc;
static int initted = 0;
if (!initted) {
hist_init();
initted = 1;
}
/*
* History uses a global array which is not
* writable until after relocation to RAM.