aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 2c849eb74..08dab26f0 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1254,8 +1254,6 @@ static void win_changed(int nsig)
1254 1254
1255int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) 1255int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st)
1256{ 1256{
1257 static const int null_flags;
1258
1259 int lastWasTab = FALSE; 1257 int lastWasTab = FALSE;
1260 unsigned int ic; 1258 unsigned int ic;
1261 unsigned char c; 1259 unsigned char c;
@@ -1270,7 +1268,7 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t
1270 maxsize = BUFSIZ; 1268 maxsize = BUFSIZ;
1271 1269
1272 /* With null flags, no other fields are ever used */ 1270 /* With null flags, no other fields are ever used */
1273 state = st ? st : (line_input_t*) &null_flags; 1271 state = st ? st : (line_input_t*) &const_int_0;
1274 if (state->flags & SAVE_HISTORY) 1272 if (state->flags & SAVE_HISTORY)
1275 load_history(state->hist_file); 1273 load_history(state->hist_file);
1276 1274