Commit c75e5117 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

busybox 1.22.0: add line edit patch

parent e090aeaa
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
--- 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;
 }