Browse Source

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>
Peter Tyser 17 years ago
parent
commit
35ef877f0a
1 changed files with 0 additions and 6 deletions
  1. 0 6
      common/main.c

+ 0 - 6
common/main.c

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