aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 9519538dc..76ef16a55 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -854,10 +854,9 @@ static int get_command(FILE * source, char *command)
** atexit() handlers and other unwanted stuff to our
** child processes (rob@sysgo.de)
*/
- cmdedit_init();
cmdedit_read_input(prompt_str, command);
- free(prompt_str);
cmdedit_terminate();
+ free(prompt_str);
return 0;
#else
fputs(prompt_str, stdout);