From e968fcd562da08591b0f7990b839174ad93fc7b4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 3 Feb 2007 02:42:47 +0000 Subject: lineedit: add missing #if/#endif init: fix warnings --- libbb/lineedit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb/lineedit.c') diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 343890868..937d70d1f 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 */ -- cgit v1.2.3