summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2008-05-22 18:56:52 -0500
committerWolfgang Denk <wd@denx.de>2008-06-03 21:33:27 +0200
commit35ef877f0a8f6232cdef748f442fed5accb2b641 (patch)
tree40fe161f557f9b8c9347a5c1bdefeeed74a4218a
parent22f371b63038a4ecab04068877c1089e51a01ba1 (diff)
downloadu-boot-imx-35ef877f0a8f6232cdef748f442fed5accb2b641.zip
u-boot-imx-35ef877f0a8f6232cdef748f442fed5accb2b641.tar.gz
u-boot-imx-35ef877f0a8f6232cdef748f442fed5accb2b641.tar.bz2
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>
-rw-r--r--common/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/main.c b/common/main.c
index a17b60b..046da6f 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.