busybox 1.22.0: add line edit patch

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Gustavo Zacarias 2014-01-15 10:16:14 -03:00 committed by Peter Korsgaard
parent e090aeaa87
commit c75e5117b4
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- busybox-1.22.0/libbb/lineedit.c
+++ busybox-1.22.0-lineedit/libbb/lineedit.c
@@ -1255,7 +1255,9 @@ line_input_t* FAST_FUNC new_line_input_t
{
line_input_t *n = xzalloc(sizeof(*n));
n->flags = flags;
+#if MAX_HISTORY > 0
n->max_history = MAX_HISTORY;
+#endif
return n;
}