From: Peter Tyser Date: Thu, 22 May 2008 23:56:52 +0000 (-0500) Subject: Additional fix to readline_into_buffer() with CONFIG_CMDLINE_EDITING before relocating X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=35ef877f0a8f6232cdef748f442fed5accb2b641;p=u-boot.git 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 --- diff --git a/common/main.c b/common/main.c index a17b60b3aa..046da6f23c 100644 --- a/common/main.c +++ b/common/main.c @@ -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.