summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-03 02:42:47 +0000
committerDenis Vlasenko2007-02-03 02:42:47 +0000
commite968fcd562da08591b0f7990b839174ad93fc7b4 (patch)
treeb384ef17e45d26a9e73b60c04eeb2935211661ef /libbb
parent4921b54f37125a58d5ea1a8aac886ae781517bc1 (diff)
downloadbusybox-e968fcd562da08591b0f7990b839174ad93fc7b4.zip
busybox-e968fcd562da08591b0f7990b839174ad93fc7b4.tar.gz
lineedit: add missing #if/#endif
init: fix warnings
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 3438908..937d70d 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1269,8 +1269,10 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t
/* With null flags, no other fields are ever used */
state = st ? st : (line_input_t*) &const_int_0;
+#if ENABLE_FEATURE_EDITING_SAVEHISTORY
if (state->flags & SAVE_HISTORY)
load_history(state->hist_file);
+#endif
/* prepare before init handlers */
cmdedit_y = 0; /* quasireal y, not true if line > xt*yt */