busybox 1.22.0: add line edit patch
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 15 Jan 2014 13:16:14 +0000 (10:16 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 15 Jan 2014 13:20:20 +0000 (14:20 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/1.22.0/0005-busybox-1.22.0-lineedit.patch [new file with mode: 0644]

diff --git a/package/busybox/1.22.0/0005-busybox-1.22.0-lineedit.patch b/package/busybox/1.22.0/0005-busybox-1.22.0-lineedit.patch
new file mode 100644 (file)
index 0000000..e414314
--- /dev/null
@@ -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;
+ }