aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index a8f7237d5..f0f0da746 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2056,8 +2056,7 @@ static sighandler_t pick_sighandler(unsigned sig)
2056static void hush_exit(int exitcode) 2056static void hush_exit(int exitcode)
2057{ 2057{
2058#if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT 2058#if ENABLE_FEATURE_EDITING_SAVE_ON_EXIT
2059 if (G.line_input_state) 2059 save_history(G.line_input_state); /* may be NULL */
2060 save_history(G.line_input_state);
2061#endif 2060#endif
2062 2061
2063 fflush_all(); 2062 fflush_all();