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