summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/busybox/files/busybox-1.22.0-lineedit.patch')
-rw-r--r--sys-apps/busybox/files/busybox-1.22.0-lineedit.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch b/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch
new file mode 100644
index 000000000000..e4143140d656
--- /dev/null
+++ b/sys-apps/busybox/files/busybox-1.22.0-lineedit.patch
@@ -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;
+ }
+